Added if statement for mobile and tablet minx