I am using this viewport tag:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
However, the iPhone/iPad/Android devices the page comes out much larger than the screen. I can only see the top left corner of the site. My web site is 900px wide.
Next I changed viewport to this:
<meta name="viewport" content="width=device-width">
Now on the iPhone and maybe iPad it comes out okay with the content zoomed out so that it is filling the screen. I’m not sure about the iPad since I don’t have one of those to test with. On Android devices this change did nothing.
What is the correct way to set view port so that a site fills the browser width?
Try adding
target-densitydpi=device-dpito your second example. This is Android specific and works withwidth=device-widthto tell the device that you want the page to be scaled to fit at all device resolutions.