1712
It's official: Smartphones will need to have replaceable batteries by 2027
(www.androidauthority.com)
This is a most excellent place for technology news and articles.
iPhones get OS updates for ~6 years, security patches for longer. In 2021, apple updated a 9 year old phone with a security patch.
Apple is objectively the only way to go if you want a device that you’ll be able to use for >5 years.