But if you want something a little more versatile, you may want to consider plugging a full-fledged computer into your TV.
The Pi 5 used to be the obvious choice for a lightweight Linux box. It no longer is.