WASHINGTON — President Trump said on Wednesday that migrants were “living far better” in Border Patrol detention centers than in their home countries, one day after his own administration reported that children in some facilities were denied hot meals or showers, and that cells were so crowded that migrants begged to be freed.

In a series of posts on Twitter, Mr. Trump criticized Democrats who this week visited Border Patrol facilities in Texas, and reported that migrants had been forced to drink from a toilet. Customs and Border Protection officials have disputed that claim.

“Many of these illegal aliens are living far better now than where they came from, and in far safer conditions,” Mr. Trump said over multiple tweets. “No matter how good things actually look, even if perfect, the Democrat visitors will act shocked & aghast at how terrible things are.”

[Related: Inside the migrant detention center in Clint, Texas.]

Mr. Trump’s statements followed weeks of public backlash over allegations about the care of migrants who are held in Border Patrol facilities.