Uso de Outlook para iOS para la administración personal de correo electrónico y calendario
If you know the password, but you are stuck at the step where it asks you to enter the 2FA code that is sent to the old phone, look for an option like “Show more verification methods” to see if you have a backup (e.g., a phone number or alternate email).
If you don’t have access to any of the options listed, select “I don’t have any of these.” This will begin the recovery process. As part of that process, Microsoft will let you add new contact information — but only after a 30-day waiting period.
This 30-day delay is intentional. It’s a security safeguard designed to protect users in case someone else tries to hijack their account by changing recovery info. The wait gives the rightful owner time to notice and stop unauthorized changes.
Unfortunately, this policy cannot be bypassed. Microsoft explains it further here.
========
If you have already done the above, then you will have to wait the 30 days. During the 30-day wait, the code is still sent to the old number and it will be automatically updated when the wait is over.
==========
I am sorry. This is simply the policy mandated by Microsoft. It is out of my contorl as much as I want to help you.