Skip to content
Yoko Co
  • About
    • Philosophy
    • History
    • Blog
    • Webinars
    • FAQ
  • Services
    • Branding
    • Websites
    • AI Solutions & Strategy
    • Custom Development
    • SEO & Consulting
    • Marketing & Automation
    • Video & Animation
    • Hosting & Maintenance
    • Accessibility & Compliance
    • AMS Connect for Re:Members
  • Work
    • Case Studies
    • Industry Expertise
  • Careers
  • Contact

Why Did My Mobile Site Fail Google's Mobile-Friendly Test?

Posted in Mobile, Search Engine Optimization (SEO), Usability, Websites
Share this

Get the good stuff.

Sign up for our newsletter to get more great content like this right in your inbox.

Latest Posts

  • Your website’s biggest audience isn’t people anymore
  • Your Association’s Website Has Three Jobs in 2026. Most Are Doing One and a Half.
  • 15 Minutes to Spare You a REALLY Bad Afternoon
  • The Conversation Spectrum
  • Google’s Commitment to AI Search is Good, for Do Gooders

mobile_test_fail

Recently, Google updated their search algorithm to favor mobile-friendly websites in mobile search and penalize those sites that do not have mobile-friendly or responsive versions. In order to help website owners confirm whether or not their site is considered mobile-friendly, Google also released a Mobile-Friendly Test Tool. The trouble is, some people are finding that their websites, which they thought were responsive or mobile-friendly, are failing Google’s test!

This can be extremely frustrating, but fortunately, there’s a fairly simple fix.

Why would a mobile site fail google’s mobile-friendly test?

Before we go on, I should specify that in this article, we’re only troubleshooting websites that are responsive, or have fully-functional mobile versions that look completely fine on smartphones and tablets. In cases where these websites fail Google’s mobile-friendly test, the error message is often the same, usually something like this: “this page uses 5 resources which are blocked by robots.txt.”

What does this mean?

In order to fully understand the problem, there are two concepts that are important to grasp:

First, you should know that the purpose of a robots.txt file is to tell search engine crawlers, such as Google, what pages or files it should or shouldn’t look at on your website. A common use of robots.txt is to prevent a login or thank you page from showing up in search results. On websites that are powered by a content management system, robots.txt is often also used to block certain administrative directories on your website which are used to power your content management system.

Second, you will need to keep in mind that a responsive or mobile site will typically rely on CSS stylesheets and javascript files to display a modified layout on smaller screens. These files are usually kept in external directories on your web server and then referenced by individual web pages.

So, bearing all that in mind, what do you think happens if a robots.txt file restricts Google from seeing these CSS stylesheets and javascript files? Google thinks your website – which looks perfectly fine on your smartphone in reality – isn’t mobile-friendly!

How can you fix this robots.txt blocking and pass Google’s mobile-friendly test?

The solution is actually pretty straightforward – in theory. You will need to use FTP to view the contents of your web server, find your robots.txt file, then edit it to allow Google to view your stylesheets and javascript files.

If you’re not sure where to find the problematic robots.txt file, or what it says, you can use the Robots.txt Tester in Google Webmaster Tools.

However, there are a few potential pitfalls to watch out for:

  • Be careful not to allow access to any directories or files that you don’t want Google to see. For example, if you keep your stylesheets in a directory called “resources,” but you also keep private PDF files (like whitepapers that people have to provide their email addresses to download) in that same directory, Google will begin to index these PDFs as well.
  • On some content management systems, such as WordPress or Drupal, if you’re using certain SEO or redirect plugins, your robots.txt file may not be visible through FTP, or it may be dynamically created upon Google’s request. To fix this, you’ll want to double-check your plugin settings. If need be, you can also create a new robots.txt file and place it where Google is looking – this file will typically override anything a plugin is doing.

Final Thoughts

Google mobile-friendly testing tool isn’t perfect and can be a real headache for site owners who have spent hours making sure their websites work great on mobile devices. Fortunately, Google’s mobile-friendly test is a great diagnostic tool, and can be a big asset for site owners trying to understand why they no longer rank well in mobile search.

Even if your website works fine on your smartphone, you should definitely run it through mobile-friendly test tool to make sure you’re not unknowingly penalized in mobile search.

For more information on Google’s mobile-friendly algorithm update, check out our post Is Having a Mobile-Friendly Site Good for Business?


Need help understanding your results and your resolution options?

Get Started

See what we can do for you.

Find Out More
By mlollar
Posted in Mobile, Search Engine Optimization (SEO), Usability, Websites
Share this

Latest Posts

Your website’s biggest audience isn’t people anymore

tl;dr: It was only a matter of time – machines are now visiting websites…

Keep Reading about Your website’s biggest audience isn’t people anymore

Your Association’s Website Has Three Jobs in 2026. Most Are Doing One and a Half.

My TikTok feed recently served up a video about well paying, in-demand careers that…

Keep Reading about Your Association’s Website Has Three Jobs in 2026. Most Are Doing One and a Half.

15 Minutes to Spare You a REALLY Bad Afternoon

Three things you can do in under five minutes each to protect your site,…

Keep Reading about 15 Minutes to Spare You a REALLY Bad Afternoon

Subscribe to our newsletter.

Insights from the world of websites, AI, accessibility, and more.

Yoko Co

703.662.1240

Contact Us

(opens in new tab) (opens in new tab) (opens in new tab) Yoko Co on Dribbble (opens in new tab) (opens in new tab)

Yoko Co is carbon neutral and so are our team members. ♥

About Us
  • Who We Are
  • Philosophy
  • History
  • Blog
  • Webinars
  • Careers
Our Work
  • Services
  • Industry Expertise
Looking for something?

© 2026 Yoko Co Privacy Policy Accessibility Statement DEI Sitemap

Scroll To Top