changed mobile check from window size to browser type