As mentioned in the previous comment, it is recommended to specify the width/height without using "px". See example below:
<meta name="viewport" content="width=500, initial-scale=1">
Keep in mind that a pixel may vary depending on the user's device.
For more information, refer to this article:
https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
Here is also a reference explaining the concept of pixels:
http://www.quirksmode.org/blog/archives/2010/04/a_pixel_is_not.html
EDIT: I might have figured out your issue. While adjusting the viewport properties, I observed that browser cache could have affected your testing experience. Make sure to clear the cache if needed. -- !!!Please read the NOTE at the END if you're testing on a non-mobile device!!!
To demonstrate a quick example, consider the following change:
<meta name="viewport" content="height=50">
I have set up 3 websites for you to check with the same div element:
All have the following CSS for the div:
div{
width: 60px;
height: 60px;
background-color: #000;
}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=2.0">
<meta name="viewport" content="height=50">
NOTE: The viewport property, which specifies the size of the viewport, is primarily used by mobile devices only.
Make sure to test this on a mobile device for accurate results! If you used a regular browser, here is the explanation!