On aMac, pressCmd+Option+UorCmd+Uin Firefox.
Alternatively, all desktop browsers support a URL-specific tweak.
Prepend the textview-source:to the URL to fire up the page in Source mode.

For example, typeview-source:https://www.lifewire.comto view the source code behind Lifewire’s main landing page.
Prefer a mouse, or need to tweak the HTML on the fly?
On iOS, however, the stock Safari app does not support this feature.
Individual mobile browsers that you installed from your platform’s app store behave differently.
Consult the internet tool’s documentation for specific procedures.