House Speaker Nancy Pelosi questioned President Trump’s mental health after he had an alleged "meltdown" with Democratic congressional leaders.

Trump met with Democratic leadership at the White House on Wednesday, who walked out of the meeting early and spoke to reporters outside.

"Right now we have to pray for [Trump's] health because this was a very serious meltdown," Pelosi said. Trump called Pelosi a "third-grade politician," the speaker said.

PELOSI openly questions TRUMP’s sanity: “Right now we have to pray for his health because this was a very serious melt down” pic.twitter.com/IjZ1kyBTyu — Scott Wong (@scottwongDC) October 16, 2019

"The President was measured, factual and decisive, while Speaker Pelosi's decision to walk out was baffling, but not surprising," White House spokeswoman Stephanie Grisham told the Washington Examiner in a statement. "She had no intention of listening or contributing to an important meeting on national security issues. While democratic leadership chose to storm out and get in front of the cameras to whine, everyone else in the meeting chose to stay in the room and work on behalf of this country."

Last month, Pelosi claimed to "pray for the president all the time," telling MSNBC host Joe Scarborough, "I pray for the safety of his family, wish that he would pray for the safety of other families and do something courageous on guns. But I also pray that God will illuminate him to see right from wrong. It's very problematic."

Trump has continued to have a fraught relationship with House Democrats since they took over the chamber after the 2018 midterms. The relationship has only grown more strained since Pelosi announced a formal impeachment inquiry into the president.

The White House has slammed the impeachment inquiry process as partisan and illegitimate, and Trump’s lawyers have pledged not to cooperate with demands from Democrats until the process is brought more in line with historical precedent.