@Mohan s, Thanks for posting in Q&A.
From your description, I know you want to restrict access to a web application using Intune and have created Conditional Access Policies and Compliance Policies.
Based as I know, Conditional access policy prevents access to a resource by blocking the target resource, through your description, devices that do not comply with the conditional access policy can still access the application, it may be because you configured the Target Resource incorrectly, so please check if your target resource is correct.
Here is a link about all resource we can configure.
Also, please look through the sign in log to see if the conditional access policy is working properly.
Please check above information, if there is any update, feel free to let me know.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.