To prevent the bath mats from getting moldy, you need to dry them after using the shower. Do this by hanging it over the tub or on the towel rack. To prevent the growth of molds, wash, and dry your shower mats properly.