2nd factor on specific users on app

Hi, is there a way to create a flow to ask for 2nd factor (txt msg) to those users that have set they phone number ? if I put into the flow post login hook, should work? Because the MFA that Auth0 use is not the way I want to use it.
Hope I was clear on the request.
Regards

Leandro

those users that have set they phone number
Are you storing the phone# as part of the User’s metadata? If yes, can you do something like the below as part of the Login flow? Let me know what you think.

exports.onExecutePostLogin = async (event, api) => {
  if (event.user.user_metadata.phone_num != null) {
		api.multifactor.enable("any", { allowRememberBrowser: true });
	}
};