Refactor #3370 : Fixed a bug with viewport meta

The browser size is changed after the set of viewport meta and it makes
the page size different than the size used in ResolutionPolicy