Hello @David Marques
You may achieve this by Singing Risk or conditional access policies.
Please have a look on below article mentioning the same.
https://learn.microsoft.com/en-us/azure/active-directory/authentication/tutorial-risk-based-sspr-mfa
If the reply was helpful, please don’t forget to upvote or accept as answer.