Microsoft is phasing out SMS verification for personal accounts and no longer allows adding a new phone number as a security method, which is why you do not see an option to add or edit it.
You can remove the old phone number and use another verification method instead (such as a recovery email address,Microsoft Authenticator, or a passkey) by going to https://account.microsoft.com/security > Manage how I sign in. Add a new verification method first, then select the old phone number and choose Remove.
You can read more about this change here: https://support.microsoft.com/accounts-billing/manage/microsoft-to-stop-sending-sms-codes-for-personal-accounts