Hello Mohammed Ayub Khan1,
Thank you for posting in Microsoft Community forum.
After my research, I think restricting specific UI elements like the 'View' tab might require additional customizations or third-party tools because the built-in policies do not cover the specific requirement directly.
You can try to prevent user from opening folder options by using this GPO:
User Configuration > Administrative Templates > Windows Components > File Explorer >Do not allow Folder Options to be opened from the Options button on the View tab of the ribbon=> Enabled.
After applying this GPO, please check if the domain users can access hidden folders via the 'View' tab or "Folder Option".
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou