I see some websites hiding source code when i try to visit the 'View Source' option on the browser... like the following page...
view-source:https://www.swiggy.com/bangalore/restaurants
How do they do that ? what technology they use so it look some piece of javascript instead of fully formal HTML code that we use to generate a web page ?
Also when i see the same swiggy.com website in a mobile phone that operates as same as the android app of them. Do they use any framework which help them to achieve this app feel or they use AJAX / HTML only to make us feel like same as their app ?
Another silly option which allows you not to show the source code is by doing a Single Page Application (all modern Javascript framework like Angular, React or Vue are made in this scope).
In this case the source code will be an index.html
file nearly empty.
The html will be generated dynamically through you javascript code (by the use of template or JSX syntax)
PS: in this way you can still see the generated html in the console of the browser (like Elements tab in Chrome)