There are several available formulations of Mylanta that may contain aluminum hydroxide and magnesium hydroxide or calcium carbonate.
Mylanta gas preparations contain simethicone, which can be helpful in treating intestinal gas.
These ingredients work by reducing acid in the stomach.

Verywell / Anastasia Tretiak
Some mylanta formulations also contain simethicone, which reduces gas.
How Fast Does Mylanta Work?
Mylanta is fast-acting and should start to provide relief within a few minutes.
You may have older products in your home that differ from the currently available formulations.
Previously marketed formulations had various combinations of aluminum hydroxide, magnesium hydroxide, calcium carbonate, and simethicone.
Chewable tablets should be chewed slowly and thoroughly.
They are less effective if swallowed whole.
Drink a full glass of water after taking the tablets.
Do not take antacids for more than one to two weeks unless prescribed by your healthcare provider.
Mylanta is designed to be used for the short-term control of minor symptoms.
Simethicone does not usually cause side effects.
Your healthcare provider can advise you on more effective treatment.
Infirst Healthcare, Inc.Mylanta Maximum Strength Liquid Antacid/Anti-Gas.
Infirst Healthcare, Inc.Mylanta Tonight Liquid Antacid/Anti-Gas.
Infirst Healthcare, Inc.Mylanta Gas Minis.
Cleveland Clinic.Your Guide to Pregnancy-Safe Medications.
MedlinePlus.Aluminum Hydroxide and Magnesium Hydroxide.