A solution to report the accurate viewport width cross-browser