This isn’t just about smart TVs. Dumb displays and TVs hooked to Windows got hit by this too.
But:
-
There is no alternative OS for a smart TV.
-
Pretty much all TVs are smart these days.
The solution is to leave the TV disconnected from the internet, and don’t run Windows. Which is quite doable these days.