By default, we do not have a specific setting that will hide the View Source of your WordPress website. However, you ma use a 3rd party plugin that has the capabilities to hide the View Source of your site. The plugin is called Disabled Source, Disabled Right Click, and Content Protection.
https://wordpress.org/plugins/disabled-source-disabled-right-click-and-content-protection/
Just to set your expectation, this plugin is a third-party plugin which we are not able to guarantee support and compatibility as we have not fully tested them. However, you are free to try.
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.