I’ve been asked about the mobile-friendly tag in search and noticed two common mistakes that I wanted to share. Both of these result in the Mobile-Friendly Test showing that a page isn’t mobile-friendly, but the PageSpeed Insights tool showing that it’s ok:
Cloaking to Googlebot. Cloaking has been in our Webmaster Guidelines for a long time, it causes all kinds of problems. Some sites try to recognize Googlebot by looking for “Googlebot” in the user-agent, and will then serve it a “Googlebot-version” of the page (which is often the desktop page). If Googlebot-smartphone crawls and sees the desktop page, the page won’t be seen as being mobile-friendly. Fetch and Render in Webmaster Tools can help you recognize this. The PageSpeed Insights tool doesn’t use the Googlebot user-agent. Don’t cloak!
Links for more information:
- http://googlewebmastercentral.blogspot.com/2014/11/helping-users-find-mobile-friendly-pages.html (archive.org)
- https://support.google.com/webmasters/answer/6066467 (archive.org)
- https://www.google.com/webmasters/tools/mobile-friendly/ (archive.org)
- https://developers.google.com/speed/pagespeed/insights/ (archive.org)
Comments / questions
There's currently no commenting functionality here. If you'd like to comment, please use Twitter and @me there. Thanks!