I am using google chrome's user agent switcher and it seems like every 5 minutes or so the mobile detection fails and the desktop theme is rendered. I can fix this by clearing the cache.

Would you know of where to look to see what is causing this?

Comments

rag_gupta’s picture

I too faced similar problem. It would show mobile or desktop theme when the opposite is desired. Here is similar issue: https://drupal.org/node/2024885

MakeOnlineShop’s picture

Issue summary: View changes

Have you found a solution to this problem ? Thanks.

rag_gupta’s picture

It is happening in my single site only out of a couple of other d7 sites.

What I've done is to add this line in the last of custom_theme hook;

return variable_get('theme_default', 'bartik');

That is if it is not mobile then it'd return the default theme.