Short answer: most iPhones get about 5 to 7 years of major iOS updates. Apple has not published a guaranteed number of years ...
In the past few years, TVs have become smarter and now feature dedicated smart TV operating systems. And as is the case with other devices that run a dedicated OS, your smart TVs also need software ...