President Trump said late Tuesday that “phony” Beto O’Rourke should be quiet and respect the victims of the El Paso Walmart tragedy — in advance of a presidential visit to the site of the massacre.

Trump mocked the former Texas rep’s nickname and his long-shot bid for the White House following a rant by O’Rourke in the wake of the shooting.

“Beto (phony name to indicate Hispanic heritage) O’Rourke, who is embarrassed by my last visit to the Great State of Texas, where I trounced him, and is now even more embarrassed by polling at 1% in the Democrat Primary, should respect the victims & law enforcement – & be quiet!” the president wrote on Twitter just before midnight.

Beto bit back in a tweet early Wednesday, refusing to stay silent.

“22 people in my hometown are dead after an act of terror inspired by your racism,” O’Rourke wrote. “El Paso will not be quiet and neither will I.”

On Sunday, O’Rourke went on an expletive-laden rant when asked by reporters what the president could do following a spate of mass shootings across the country.

“What do you think? You know the sh– he’s been saying,” O’Rourke said. “He’s been calling Mexican immigrants rapists and criminals. I don’t know, like, members of the press, what the fu–?”

The El Paso shooter, who posted a manifesto online moments before Saturday’s mayhem, spoke about a Mexican “invasion” but said that his views on immigration “pre-date” Trump’s presidency.

Trump is planning on traveling to the border town of El Paso as well as Dayton, Ohio, the site of another mass shooting, on Wednesday.