Retiring GOP Rep. Ryan Costello (Pa.) said Wednesday that President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE's assertion that certain Republicans lawmakers would have won their midterm congressional races if they embraced him was a "total joke."

"You develop a certain respect for the people you work with, and when you see them lose, it’s tough enough. But when you see them lose because of the president, and the president not only doesn’t acknowledge that, instead he says if they embraced him they would have won, which is a total joke, nobody believes that," Costello said while speaking on CNN.

"But then to insult them and mock them on their way out, it’s just the height of pettiness, it’s not excusable."

ADVERTISEMENT

Costello added that many of the lawmakers who lost their seats in the House in Tuesday's midterm elections were defeated because of the anger that many Americans held toward the president.

Trump on Wednesday criticized a range of GOP lawmakers who lost reelection bids, suggesting that a different outcome may have occurred had they embraced him.

"Mia Love Ludmya (Mia) LoveFormer NFL player Burgess Owens wins Utah GOP primary The Hill's Campaign Report: The political heavyweights in Tuesday's primary fights The biggest political upsets of the decade MORE gave me no love, and she lost," Trump said, referring to the Republican congresswoman from Utah. "Too bad. Sorry about that, Mia.”

Costello, who did not seek another term and saw Pennsylvania's 6th Congressional District turn blue on Election Day, initially slammed the president for his remarks on Twitter.

"To deal w harassment & filth spewed at GOP [members of Congress] in tough seats every day for 2 yrs, bc of POTUS," Costello tweeted during the press conference. "To bite ur lip more times you’d care to; to disagree & separate from POTUS on principle & civility in ur campaign; to lose bc of POTUS & have him piss on u."

Later on CNN, he compared Trump's remarks about certain Republican lawmakers to dancing on somebody's grave.

Democrats won a majority in the House on Tuesday in a major victory for the party. Democrat Chrissy Houlahan won 58 percent of the vote in Costello's district to replace him in the next Congress.