Use clientWidth/clientHeight instead of innerWidth/innerHeight to fix mobile devices