This is part of why I bought an iPad that basically should never leave my home. The TOTP Authenticator app I've been using supports iCloud's secure enclave for backups and worst case I can restore a backup on the iPad and still have access to most of my 2FA sources.
(Also yeah, always prefer TOTP to SMS given the choice.)