Mobile not initially working

[ad_1]

Hi. I need some help with an issue I am having. For my WP site, I developed for a desktop first. To create a mobile-friendly version, in the header.php and footer.php, I call wp\_is\_mobile(), and if true, I do some CSS modifications, via JavaScript, to adjust font sizes, etc.

When I run the site in the mobile version of the inspector in Chrome, I see all my mobile changes. When I run in various browsers on my phone, the pages initially come up without the changes, until I pinch zoom in the page and then pinch zoom out…then, I see the changes for mobile on the page.

Can someone tell me why this is the case, and what to do about it? Thanks!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer