Hi, are you signing in using a browser or the Outlook app on those devices?
Wait 15 minutes before trying again, then sign in using an InPrivate or Incognito window to avoid cached errors. Go to your account security settings, confirm your phone number, and add an authenticator app as a backup sign in method so you can receive codes even if SMS does not work.