fix mobile browser detection