Amphibians, reptiles, and birds
They also had a very well-developed secondary palate.
Ankylosaurus was herbivorous and had approximately 72 small, leaf-shaped teeth. The teeth were thin and made up of a series of cusps that looked like large serrations and a swollen base or cingulum. https://www.fossilera.com/pages/dinosaur-teeth