Fix mobile detection on view page