If you have a phone with snapdragon CPU you probably can extend it’s lifespan with custom ROMs that offers security updates. Mine released in 2019, support dropped at android 11, but unofficial LOS with android 13 works great and still updates regularly. No complains here, even the OTA works. Although I do need to flash manually because of root. I don’t see myself upgrade anytime soon.