I have an original iPad (v1?) and a iPhone 3GS, neither of which can be upgraded and yet in both cases the battery is fine and they work Ok but with very out of date software which in turn means that I can't access even relatively benign web sites effectively.
What do you mean by this? My 5S device from 2013 will support iOS 12. The battery might be dying but it is replaceable.