Sure, first you check if your TV is rootable: https://cani.rootmy.tv/
If not, you can try and find one on Ebay or local classifieds that is. That's the hardest part.
Then you setup a VLAN (I use OpenWRT, which has great support for this) and some firewall rules that forbid all traffic that isn't port 80 or 443. Then you create a dnsmasq blacklist for all the LG domains (good list is [1]).
Then you install this: https://github.com/webosbrew/youtube-webos
Enjoy Youtube on a large screen under your control without ads, and without annoying sponsors.
[1] https://raw.githubusercontent.com/hagezi/dns-blocklists/main...