I used to do that, with a Linux HTPC and Plex. I eventually switched to the physical AppleTV device, with all the content on a surplus Mac mini connected to the home network. It's just less work to maintain. On the old setup, it always worked perfectly whenever I was around and had plenty of time to tinker with things. It only ever had problems when I was at the office, very busy, and the kids wanted to watch some show I had digitized from our DVD collection. Granted, the problems were always small and easily fixed, but they were disruptive because of the circumstance.
I've never had that happen to me with the Apple setup. Yeah, you've got to at least partially buy into their ecosystem. But they don't force you to go all in if you don't want to.
With that in mind, if I wanted a Linux HTPC setup for minimal tinkering, for the purposes of accessing YouTube and Jellyfin, I'd probably go with an immutable system; I like the look of Bazzite for this. Then, I'd probably disable automatic updates, and manually update things periodically when I have time. If it breaks, you can always roll it back, but manual updates will take the minimal potential disruptions to probably just zero. You could run this on a cheap mini/NUC PC. For TVs that are not mounted to the wall, you could probably even mount it to the back using a VESA mount adapter.
That said, I don't currently have plans to replace all of my Chromecast setups, so I haven't actually done this. That's because they've been working very well for years and there's really no reason to mess with something that works. They were cheap, they run Android apps, and I've cut out all of the unwanted advertising.
Many modern TVs, if you can find one that isn't complete dogshit (good fucking luck), can do Miricast without connecting to the Internet or requiring an account. That's nice since it fills one role of Chromecast: the ability to easily cast your desktop.
But I'd like a full open source ecosystem implementing casting. Right now using Chromecast protocols from Firefox is a crapshoot and I just haven't bothered, but I don't think there's any reason why we can't just make our own. YouTube may be somewhat hostile, but at a certain point it's hard to stop a cast tool that just execs an official Google Chrome binary, you know? So there's always something that could be done.
That said, I keep a list of instructions for un-shittifying the Google Chromecast TV devices for myself, since I do have a few of them. Note that you already need to log in for this to really work, but I already do that, since I want to be logged into YouTube, for the time being (for Premium and age-restricted videos and subscriptions and etc.)
I'll just copy and paste them here:
If your auth becomes stale you need to re-enable those app IDs and log back in. This will manifest as things simply not working, e.g. videos not playing. However, it only happened to me a couple of times. I think it requires session tokens to completely expire, which takes a while of inactivity.