Conditional access would be able to sort this for you. You do need to have the correct licensing to turn it on though.
More information can be found here:
https://learn.microsoft.com/en-us/azure/active-directory/conditional-access/overview
Options you would need to look at are either location based or device based conditional access policies.
Any questions, let me know.
p.s. Please remember to mark the answer for this question or post your own findings/solution so it may help others.