No, you should not put a memory foam mattress in the washer or dryer. Memory foam mattresses are not designed to be machine-washed or machine-dried, and doing so can cause severe damage to the mattress.
Memory foam mattresses are made of a special type of polyurethane foam that responds to heat and pressure, contouring to the shape of your body when you lie on it. When a memory foam mattress is exposed to water and subjected to the mechanical agitation of a washing machine, it can lose its structural integrity, break down, and become misshapen. Additionally, the water retention within the foam can lead to mold and mildew growth, making the mattress unsanitary and potentially harmful to use.
If your memory foam mattress needs cleaning, spot cleaning is the recommended method. You can gently clean stains or spills on the mattress surface using a mild detergent mixed with water and a soft cloth. Avoid soaking the foam, and make sure to allow it to dry completely before using it again. Using a mattress protector can also help keep the mattress clean and protect it from spills and stains.
For more thorough cleaning or if your mattress is heavily soiled, it's best to consult the manufacturer's instructions or contact a professional mattress cleaning service. Taking proper care of your memory foam mattress will help maintain its quality and prolong its lifespan.