To view a web page’s source code in Google Chrome on Android…
- Add a bookmark (of any page).
- View bookmarks and edit it.
- Change title to ‘View source’.
- Change URL to
javascript:document.location='view-source:'+document.location;
- To use, visit a web page then start typing ‘view source’ in the location bar and select your bookmark from the auto-complete dropdown.
Reference: How do I view source in the Android browser?