1652
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.
The good news for you is that most 10 year old phones have user serviceable batteries, so you’re free to keep using those if you want.
Not much you can do about software updates, unless you want to pay significantly more for a new phone to cover the cost of OEMs having to pay their engineers to build those updates for the dozens of phones that get released over a 10 year window.