Hi @OAK ,
Thank you for reaching out. Based on the requirement you can create a conditional access policy and using filters like deviceOwnership, trustType, etc you can choose to allow or block access based on device properties mentioned in below documentation.
Conditional Access: Filter for devices
Please note that at present when implementing conditional access policy there is no condition to check the presence of anti-virus and cannot be used to determine access.
I hope this answers your query.
--------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.