You should be able to do this by following the guide to secure the registration.
For combined registration:
1) In the Azure portal, browse to Azure Active Directory > Security > Conditional Access.
2) Select New policy.
3) In Name, Enter a Name for this policy. For example, Combined Security Info Registration with TAP.
4) Under Assignments, select Users and groups, and select the users and groups you want this policy to apply to.
i. Under Include, select All users.
Note: Users must be enabled for the combined registration.
Under Exclude, Select All guest and external users.
Note: Temporary Access Pass does not work for guest users.
ii. Select Users and groups and choose your organization's emergency access or break-glass accounts.
5) Under Cloud apps or actions, select User actions, check Register security information.
6) Under Access controls > Grant.
a. Select Grant access.
b. Select Require multi-factor authentication.
c. Click Select.
7) Set Enable policy to On.
8) Then select Create.
Guest user registration
For guest users who need to register for multi-factor authentication in your directory you may choose to block registration from outside of trusted network locations using the following guide:
1) In the Azure portal, browse to Azure Active Directory > Security > Conditional Access.
2) Select New policy.
3) In Name, Enter a Name for this policy. For example, Combined Security Info Registration on Trusted Networks.
4) Under Assignments, select Users and groups, and select the users and groups you want this policy to apply to.
a. Under Include, select All guest and external users.
5) Under Cloud apps or actions, select User actions, check Register security information.
6) Under Conditions > Locations.
Configure Yes.
Include Any location.
Exclude All trusted locations.
Select Done on the Locations blade.
Select Done on the Conditions blade.
7) Under Access controls > Grant.
Select Block access.
Then click Select.
8)Set Enable policy to On.
9)Then select Save.