asp.net core has sms and email support for MFA. a code is sent and used for login. see docs, its pretty clear. the sample uses twillo or aspsms for SMS, but you can change the code to match your preferred SMS provider.:
if you want to use authenticator apps, then it probably easier to switch to Entra authentication.