Added more conditions to check for mobile platform