Antacids like Mylanta are short-term medications that shouldn't be taken for longer than one or two weeks, unless a healthcare provider has instructed otherwise.