Hi Sagar Verma
Conditional Access policies should help to limit the resources access based on the policies. Conditional Access takes signals from various sources into account when making access decisions.
Here is a detailed guide to read further and implement the policies based on your requirements
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--