Correct logic of tablet detection if tablet should be treated as mobile