While browsing GitHub from Safari on iOS, I've occasionally switched to desktop version of the website. Now I couldn't find way to switch back to mobile version. Even when opening GitHub in Safari private mode, I'm getting myself on desktop website. How could I bring mobile GitHub back?
I know this is a 5 year old post, but it is still the first Google hit for "GitHub Switch to Mobile Version" and several other variants. The solution to add "?mobile=1" still works at least in some cases, but there is a more all encompassing one if you want to change the setting across the board.
As of now, if you click "Always Use Desktop Version" you will not get a link to undo that setting. The setting is now saved in your account settings.
Chromium web dev toolbar "Toggle device toolbar"
It is likely detected from user agent.
Chromium's builtin web dev toolbar can easily switch to a mobile user agent for you:
- Ctrl + Shift + C
- Click toolbar
- Ctrl + Shift + M (or click "Toggle device toolbar" at top left)
- Reload the page
Tested in Chromium 58.
What I've found is that some github pages are mobile while others are desktop/full pages.
So if you're looking at a repository, you'll see a mobile version of the page.
EDIT: if you don't see a "switch to mobile" link when you're on /explore. You might have to clear your Safari cookies. To clear Safari cookies, go to Settings -> Safari -> Clear Cookies and Data.
A direct solution to the problem is to add to any of GitHub URLs parameter
mobile with value
1, e.g. https://github.com/?mobile=1. That will make GitHub to show mobile version of the website for you (it will remember the parameter, no need to add it each time), until you switch back to desktop version.
However I found no reason for Switch to mobile version link is not shown in Safari on iOS as it appears on screenshot posted by @Muhammad in comment to his answer. It someone know the reason behind it, feel free to edit the answer.