For example, in the Netherlands, KPN, the last operator to switch off 3G, is planning to do so at the end of this month.
2G, on the other hand, is still in the air, with commitments to keep it alive until 2025, possibly longer.
Source (in Dutch): https://www.kpn.com/zakelijk/blog/de-toekomst-van-iot-vraagt...
So you would need:
- a new antenna
- a new modem
- a driver working with your CPU/OS, which is likely to not be the case
- a way to replace the parts
Sometimes the modem is part of the CPU package, making it impossible.
Driver limitations make it often even impossible to produce "the same phone but with just another modem", not even speaking about upgrading.
The best chance to update to 5G is in laptops where the modem is on a separate Bord, but even then you have the problem of firmware lock-down and interface incompatibilities.
If you only use it around the house, you can get a picocell.
I once lived in a building that was too tall for cell service to reach the upper floor residences, and the carriers (mine was AT&T) would send the residents picocells to relay the signals from their cell phones to the internet.
My iPhone is affected by this (or so Sprint tells me) and I'm holding off as long as I can. I'm seriously considering one of these: https://www.sprint.com/en/shop/cell-phones/sonim-xp3-plus-no...
I won't buy an Android because I don't trust Google, and I'm just tired of Apple's poor quality lately.