Link turned around and saw that a much larger than normal dodongo (by now he would know how to recognize them) was walking towards him. He assumed it was the king of the dodongs. He grunted and advanced a little further; then it opened its muzzle and released a ball of fire. Link dodged her, but didn't know what to do. Navi told him that King Dodongo swallowed everything, even the bombs, so Link waited for King Dodongo to open his mouth again to throw a bomb at him, to see what would happen.
When this happened, King Dodongo was paralyzed, falling to the ground; Then Link took the opportunity to hit him hard with the sword. After this, King Dodongo turned around the room except for the fire.
Since he did not die, Link made the same movement two more times and then King Dodongo turned around the room again, but this time he did not calculate well and fell into the lava lake, paralyzing even more and gradually turning into solid rock. She might not have disintegrated like Queen Gohma, but at least she would no longer wreak havoc.
Then a Heart Container and a beam of light appeared. Link took the first one and, like in the Great Deku Tree, he felt much stronger. Then he stepped into the beam of light, which enveloped him and suddenly appeared at the entrance to the Cave of the Dodongos.