Desktop View Showing in Mobile View How?

Posted in: Newspaper
Post count: 6

Hi, My website desktop pages convert into mobile. I delete cache then it will goes to desktop. My website lots of pages showing like mobile pages. This is happened again and again.

https://ibb.co/R7zPcSY
https://ibb.co/ch3jX58

Post count: 623

@mandeepbamral

Generally, this happens due to server-level cache or Cache plugin configuration.

Solution 1: Try generating a separate cache for Desktop and Mobile users.
Solution 2: You can add the following code to the .htaccess file

# Begin Quick fix
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>
# End Quick fix

This will add User-Agent header to your site and serve cache accordingly.

Let me know if you find this helpful.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.