Two Factor Authentication
I have my iCloud locked with two factor authentication but no longer have access to that phone number. What do I do?
Apple Intelligence is now available on iPhone, iPad, and Mac!
I have my iCloud locked with two factor authentication but no longer have access to that phone number. What do I do?
You will need account recovery - Two-factor authentication for Apple ID - Apple Support.
"If I can't sign in, how do I regain access to my account?
If you can’t sign in, access a trusted device, reset your password, or receive verification codes, you can request account recovery to regain access to your account."
You will need account recovery - Two-factor authentication for Apple ID - Apple Support.
"If I can't sign in, how do I regain access to my account?
If you can’t sign in, access a trusted device, reset your password, or receive verification codes, you can request account recovery to regain access to your account."
answered in "What if I no longer have access to any of my trusted devices?" section of Two-step verification for Apple ID document
Two Factor Authentication