Hi @Srinivas Pasupuleti - CyberSecurity ,
Thank you for posting in this community.
As you said, you can control access to SharePoint and OneDrive content from unmanaged devices (requiring devices to be marked as compliant and requiring Microsoft Entra Hybrid Connected Devices). As far as i know and searched, for on-premise non-domain connected devices we do not have a way to lock down access to SharePoint and OneDrive at this time. Deeply regrettable.
If the answer is helpful, please click "Accept as 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.