
You could set conditional access policy to limit SharePoint only be available in company devices registered on Azure AD and OneDrive be available in any devices.
Go to Azure Active Directory -> Protect&secure -> Conditional Access -> Add policy -> Based on your requirement to set conditional access policy.
Reference:
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.