One practical add for anyone reading this from a SIM-bound country: the fix is moving accounts off the phone number, not just off SMS codes.
1. Switch each account's 2FA to an authenticator app (TOTP) or a passkey / hardware security key. Those codes never touch the carrier.
2. Save the backup codes offline.
3. Then remove the phone number as a recovery method where the service allows it. If SMS reset stays on, whoever controls the SIM can still take the account.
Even NIST's current US guidance (SP 800-63B-4) lists SMS/voice delivery over the phone network as the one "restricted" authenticator and says services must offer a non-restricted alternative:
https://pages.nist.gov/800-63-4/sp800-63b.html
