President Trump Donald John TrumpSteele Dossier sub-source was subject of FBI counterintelligence probe Pelosi slams Trump executive order on pre-existing conditions: It 'isn't worth the paper it's signed on' Trump 'no longer angry' at Romney because of Supreme Court stance MORE late Tuesday night responded to criticism from former Rep. Beto O'Rourke Beto O'RourkeJimmy Carter says his son smoked pot with Willie Nelson on White House roof O'Rourke endorses Kennedy for Senate: 'A champion for the values we're most proud of' 2020 Democrats do convention Zoom call MORE (D-Texas), who has repeatedly assailed the president following a mass shooting in El Paso, Texas.

"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!" Trump tweeted.

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! — Donald J. Trump (@realDonaldTrump) August 7, 2019

The president's remarks come shortly after O'Rourke, a 2020 presidential contender, announced he would be attending an event on Wednesday to pay tribute to the shooting victims and counter Trump's visit to the city.

"When President Trump comes to El Paso tomorrow, I will be joining our strong, beautiful, binational community at #ElPasoStrong. I hope to see you there," O'Rourke tweeted earlier Tuesday night. ADVERTISEMENT

In response to Trump's tweet, O'Rourke said, "22 people in my hometown are dead after an act of terror inspired by your racism. El Paso will not be quiet and neither will I."

22 people in my hometown are dead after an act of terror inspired by your racism. El Paso will not be quiet and neither will I. https://t.co/dakFPKj0vJ — Beto O'Rourke (@BetoORourke) August 7, 2019

The El Paso native, who had previously run a competitive race against Sen. Ted Cruz Rafael (Ted) Edward CruzThe Hill's Morning Report - Sponsored by Facebook - Trump previews SCOTUS nominee as 'totally brilliant' Cruz blocks amended resolution honoring Ginsburg over language about her dying wish Trump argues full Supreme Court needed to settle potential election disputes MORE (R) in 2018, has garnered new interest in recent days after a viral moment following the mass shooting on Saturday at a Walmart. Asked by a reporter what Trump should do to prevent more mass shootings, a seemingly exasperated O'Rourke responded, "What do you think? You know the shit he’s been saying. He’s been calling Mexican immigrants rapists and criminals. I don’t know, like, members of the press, what the f---?"

The response was widely praised by liberals in the media, pointing to the growing frustration many on the left feel about how the press has been portraying Trump in the wake of the shooting. O'Rourke has dug in since then, comparing the Trump administration to the Third Reich.

O'Rourke is one of many prominent figures to criticize the president since the weekend, which also saw a mass shooting in Dayton, Ohio, on Sunday. Critics have drawn a link between Trump's rhetoric toward Latinos and the suspected El Paso gunman, who had apparently set out to kill Mexicans.

Trump condemned white nationalism and racism in an address on Monday morning, but that has done little to quell the anger. On Wednesday he will visit both El Paso and Dayton, where he's likely to receive a chilly, if not outright hostile, reception.

The tragic incidents have left an opening for O'Rourke to regain the spotlight. The former congressman has not gained much traction in the polls since announcing his candidacy for president earlier this year, with his debate performances doing little to improve his standing. But he has become the most prominent 2020 contender over the past week to address the shootings.

Earlier on Tuesday, O'Rourke said on CNN that the media can't let Trump get off "scot-free" for his actions.

"This is the most racist president we've had since perhaps Andrew Johnson, in another age and another century, and he is responsible for the hatred and the violence that we're seeing right now," he said on CNN's "Cuomo Prime Time."

Updated at 6:06 a.m.