#316 Modify detecting logic for mobile browser