(CNN) Former House Speaker Paul Ryan tweeted Wednesday that President Donald Trump's "record of accomplishment is why he'll win re-election," a significant difference from comments the Wisconsin Republican made earlier this week where he described how he thought some Democrats could beat Trump in the 2020 election.

"To be clear, GOP wins elections when they're about ideas not when they're personality contests like Dems & media want. We're clearly better off because of @RealDonaldTrump," stated Ryan's tweet Wednesday from his @SpeakerRyan official account. "His record of accomplishment is why he'll win re-election especially when compared to Dems' leftward lurch."

Ryan, who left his position at the end of the previous Congress, faced criticism from Republicans over comments he made Monday that he believed some Democrats could beat Trump, according to a report from Treasure Coast Newspapers. "The person who defines that race is going to win the race," Ryan said during a lecture, according to the publication. "If this is about Donald Trump and his personality, he isn't going to win it."

The comments sparked a direct rebuke from the most senior Republican in the House, Kevin McCarthy, who said on Tuesday that he disagreed with the former speaker.

"I believe this President will win re-election," McCarthy said in response to a question from CNN at a weekly House GOP news conference. "I believe this President could run on many different items."

Read More