Scrub your moldy bathroom walls with 1 gallon of warm water mixed with ¼ cup liquid detergent. Rinse with clear water and a clean rag. Run a fan to speed drying while you wipe the walls dry with a lint-free cloth.
Prepare a bleach solution of three parts water to one part bleach in a clean pail. Wash the walls with this mixture. Allow them to quickly air dry, aided by a fan. Some mold or mildew stains may be visible even after bleaching.
Apply a coat of stain-blocking and mold/mildew-covering primer. Allow the primer to dry completely. Apply a second coat of primer if you can see any stains after the first coat.
Paint your bathroom walls with a paint that is specially formulated for surfaces that are susceptible to mold and mildew. Read paint cans carefully to ensure you are buying the appropriate paint.