@rrrule32 "RetroPie" is a collection of shell scripts to assist with the download, installation, and configuration of various different emulator and front-end softwares on Linux computers running a Debian-based distribution.

Raspberry Pi is a single-board computer that runs Raspberry Pi OS, a Debian-based Linux distribution, and can output via HDMI to a television or computer monitor.

You can put RetroPie on a Raspberry Pi and connect it to your TV. You probably cannot put RetroPie on the TV itself, but really I don't know what they're doing with smart TV's these days so what do I know. If it runs a Debian-based Linux, it just might work.