When a stroller is dirty, it can be okay to leave it in direct sunlight, depending on the stroller and the climate where it is used. Most strollers are water-resistant, so a mild soap and water solution should suffice to clean them. If the stroller seems damaged due to being left in the sun, it may be best to replace it.