The solution is so easy to follow. There is no need to edit CSS or theme files. You need to go to the Wp admin, then go to the Users > Your Profile. Scroll down to Toolbar (under Keyboard Shortcuts) and uncheck the Show Toolbar when viewing site box.
Check Also
How to remove the redirect to the main domain for its aliases in WordPress
For multisites, the case of creating site mirrors that open the contents of the main …