I'm trying to figure out the best way to adjust the 'initial-scale' so that my website's width fits perfectly on any device screen when first loaded.
Check out my website here:
While it looks fine on regular browsers, I had some issues with text and iframe display on mobile browsers. Adding the viewport meta tag resolved these problems:
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="width=240, height=320, user-scalable=yes, initial-scale=0.3, maximum-scale=1.0, minimum-scale=0.3" />
<meta name="apple-mobile-web-app-capable" content="yes" />
It is important to set the initial scale correctly to avoid issues such as parts of the iframe not displaying properly when zoomed. Setting a smaller initial scale allows for smoother zooming in and out.
<meta name="apple-mobile-web-app-capable" content="yes" />