WordPress redirects only on mobile or Google traffic: cloaking signs and cleanup

Huy Hoàng · Updated Nov 19, 2026

Technician checking strange Search Console URLs after WordPress SEO spam

Quick answer: WordPress redirects only on mobile or Google traffic often indicate cloaking, redirect malware or SEO spam. The site may look normal when an administrator opens it directly on desktop, while visitors from Google, mobile devices or incognito sessions are sent to casino, ads, app-download or malicious landing pages.

This incident is easy to miss because the site owner may not reproduce the issue. If left unresolved, the site can keep generating spam URLs, lose SEO trust, affect ads or lead to a Chrome / Google Safe Browsing warning. It should be handled through a controlled WordPress malware and error repair workflow.

Why does redirect happen only on mobile or Google traffic?

Redirect malware often uses conditions to avoid administrators: mobile user-agent, Google referrer, cookies, IP, country, login state or visit count. It may stay quiet for logged-in admins and direct visits, then activate for new visitors from search or mobile devices.

Signs of WordPress cloaking redirect

Common signs include visitors reporting redirects from Google, Search Console showing strange URLs, abnormal bounce-rate spikes, ad disapprovals due to destination mismatch, mobile redirect while desktop looks normal, or security plugins reporting suspicious files/scripts without an obvious visible problem.

Where redirect payloads usually hide

Redirect code can live in infected plugins/themes, functions.php, header/footer scripts, database options, widgets, post content, mu-plugins, .htaccess, wp-config, PHP files in uploads or cache. Some payloads call external JavaScript domains to change the redirect destination over time.

Context-based redirect testing checklist

Test contextHow to checkMeaning
MobileUse a real phone, mobile network and incognitoFind user-agent or screen-based redirect.
Google referrerClick from Google results or simulate referrerFind cloaking triggered by search traffic.
Logged outTest outside admin with clean cookiesAvoid malware bypassing admin sessions.
Search ConsoleReview security issues, indexed pages and strange URLsFind what Google has already seen.
Cache/CDNClear LiteSpeed/CDN/object cache and retestRule out stale cached redirects.

Do not only clear cache or switch themes

Clearing cache can hide symptoms temporarily but does not remove file, database or backdoor payloads. Switching themes is also insufficient if the redirect is in a plugin, mu-plugin, unknown admin user, database option or exposed hosting access. Trace the redirect path before declaring the site clean.

What should cleanup include?

Start with a backup and evidence capture: affected URL, device, referrer and timing. Then review files and database, plugins/themes, admin users, .htaccess, cron, access logs, Search Console and cache/CDN. After cleanup, rotate credentials, update risky components, retest mobile and Google-referrer behavior, and monitor for several days.

SEO and AIO impact if cleanup is delayed

Google may index spam URLs, reduce domain trust, show warnings or ignore the real content. AI answer and content extraction systems may also misunderstand the entity if junk content is injected. Cleanup should include spam URL handling, sitemap update, recrawl requests for important URLs and clean internal links.

After cleanup, move into security maintenance

A site that has been affected by redirect malware should move into WordPress maintenance and stronger WordPress security services: tested backups, controlled updates, admin-user review, file-change monitoring, Search Console checks and periodic form/CTA testing.

FAQ

Why does the site look normal for me but redirect visitors?

Malware may bypass admins by checking cookies, IP, login state or only triggering on mobile/Google referrers. Test like a new visitor while logged out.

Is a Google review request required?

If Search Console or Safe Browsing reports an issue, clean the site first and then submit a review. If only spam URLs are indexed, remove the source and request recrawling for important URLs.

Can redirect code be stored in the database?

Yes. Many attacks inject scripts or URLs into options, widgets, post content or builder data. File scanning alone is not enough.

Will redirect stop immediately after deleting the payload?

Not always. Cache/CDN/browser cache must be cleared, Search Console should be checked, and the site must be monitored for reinjection.

Does your website redirect only on mobile or Google traffic?

IT Systems reviews cloaking, redirect payloads, database, plugins/themes, Search Console, cache/CDN and backdoors to fix the cause instead of only clearing cache.

Need someone to run your business website?

IT Systems maintains WordPress, backups, security and speed, with regular reports for business websites.

Website management services · Call +84 28 3995 0359

Request adviceChat on ZaloCall hotline