Speaker of the House Paul Ryan (R-WI) and fellow House Republican leaders hold a news conference following their weekly caucus meeting at the U.S. Capitol Visitors Center July 17, 2018 in Washington, DC. After President Donald Trump said he believed President Vladimir Putin that Russia did not interfere with the 2016 presidential election during a news conference in Finland, Ryan released a statement critical of Trump. "There is no question that Russia interfered in our election and continues attempts to undermine democracy here and around the world," Ryan said in a statement. ÒThe president must appreciate that Russia is not our ally." Chip Somodevilla/Getty Images
Chip Somodevilla/Getty Images
Speaker of the House Paul Ryan (R-WI) and fellow House Republican leaders hold a news conference following their weekly caucus meeting at the U.S. Capitol Visitors Center July 17, 2018 in Washington, DC. After President Donald Trump said he believed President Vladimir Putin that Russia did not interfere with the 2016 presidential election during a news conference in Finland, Ryan released a statement critical of Trump. "There is no question that Russia interfered in our election and continues attempts to undermine democracy here and around the world," Ryan said in a statement. ÒThe president must appreciate that Russia is not our ally." Chip Somodevilla/Getty Images
Now playing
01:48
Ryan: Trump can't end birthright citizenship
Sen. Lisa Murkowski (R-AK) speaks to reporters as she arrives for the continuation of the Senate impeachment trial of President Donald Trump at the U.S. Capitol on January 29, 2020 in Washington, DC. The next phase of the trial, in which senators will be allowed to ask written questions, will extend into tomorrow. (Photo by Mario Tama/Getty Images)
Mario Tama/Getty Images
Sen. Lisa Murkowski (R-AK) speaks to reporters as she arrives for the continuation of the Senate impeachment trial of President Donald Trump at the U.S. Capitol on January 29, 2020 in Washington, DC. The next phase of the trial, in which senators will be allowed to ask written questions, will extend into tomorrow. (Photo by Mario Tama/Getty Images)
Now playing
04:08
Murkowski explains why she's voting for Biden nominee
President Joe Biden, accompanied by Vice President Kamala Harris, speaks Tuesday, April 20, 2021, at the White House in Washington, after former Minneapolis police Officer Derek Chauvin was convicted of murder and manslaughter in the death of George Floyd. (AP Photo/Evan Vucci)
Evan Vucci/AP
President Joe Biden, accompanied by Vice President Kamala Harris, speaks Tuesday, April 20, 2021, at the White House in Washington, after former Minneapolis police Officer Derek Chauvin was convicted of murder and manslaughter in the death of George Floyd. (AP Photo/Evan Vucci)
Now playing
03:01
'A step forward': Biden speaks after Chauvin's guilty verdict
CNN's Eli Honig explains how much time former police officer Derek Chauvin, 45, could face after he was convicted of second-degree unintentional murder, third-degree murder and second-degree manslaughter in the case of George Floyd.
CNN
CNN's Eli Honig explains how much time former police officer Derek Chauvin, 45, could face after he was convicted of second-degree unintentional murder, third-degree murder and second-degree manslaughter in the case of George Floyd.
Now playing
03:25
Here's the sentence Derek Chauvin could face after guilty verdict
CNN's Van Jones reacts to Attorney General Merrick Garland's announcement that the Justice Department has launched a federal civil probe into policing practices in Minneapolis following the death of George Floyd and the murder convictions for ex-cop Derek Chauvin.
CNN
CNN's Van Jones reacts to Attorney General Merrick Garland's announcement that the Justice Department has launched a federal civil probe into policing practices in Minneapolis following the death of George Floyd and the murder convictions for ex-cop Derek Chauvin.
Now playing
03:08
Van Jones reacts to Justice Department's Minneapolis police probe
CNN
Now playing
03:14
'Performative outrage': Avlon on GOP backlash to Rep. Waters
Two Honduran children found clinging to an island surrounded by a powerful current in the Rio Grande were rescued by Border Patrol agents and taken into custody, the region's top border official said, the latest example of the dangers migrants face as a growing number desperately attempt to reach the US.
U.S. Border Patrol
Two Honduran children found clinging to an island surrounded by a powerful current in the Rio Grande were rescued by Border Patrol agents and taken into custody, the region's top border official said, the latest example of the dangers migrants face as a growing number desperately attempt to reach the US.
Now playing
02:22
See Border Patrol rescue 2 migrant children in Rio Grande
Biden speaks from the Treaty Room in the White House on April 14, 2021 in Washington, DC.
Andrew Harnik/Pool/Getty Images
Biden speaks from the Treaty Room in the White House on April 14, 2021 in Washington, DC.
Now playing
02:59
Enten: Biden is focused on what Americans care about
CNN
Now playing
02:40
Biden says he's praying for 'right verdict' in Chauvin trial
ST. PAUL, MN - NOVEMBER 6:  Former U.S. Vice President Walter Mondale concedes the election to his Republican opponent Norm Coleman November 6, 2002 in St. Paul, Minnesota. Mondale and Coleman were in a race for U.S. Senate that was too close to call the evening before.  (Photo by Mark Erickson/Getty Images)
Mark Erickson/Getty Images
ST. PAUL, MN - NOVEMBER 6: Former U.S. Vice President Walter Mondale concedes the election to his Republican opponent Norm Coleman November 6, 2002 in St. Paul, Minnesota. Mondale and Coleman were in a race for U.S. Senate that was too close to call the evening before. (Photo by Mark Erickson/Getty Images)
Now playing
03:00
Walter Mondale dies at 93
george w bush congress immigration rhetoric cbs intv sot mxp vpx_00000000.png
george w bush congress immigration rhetoric cbs intv sot mxp vpx_00000000.png
Now playing
01:25
Bush calls on Congress to tone down 'harsh rhetoric' on immigration
WASHINGTON, DC - MARCH 23: Sen. Ted Cruz (R-TX) speaks at a Senate Judiciary Committee hearing on "Constitutional and Common Sense Steps to Reduce Gun Violence" on March 23, 2021 in Washington, DC.  Many senators spoke both for and against gun control the day after a shooting in Boulder, Colorado where a gunman opened fire at a grocery store, killing ten people. (Photo by Tasos Katopodis/Getty Images)
Tasos Katopodis/Getty Images
WASHINGTON, DC - MARCH 23: Sen. Ted Cruz (R-TX) speaks at a Senate Judiciary Committee hearing on "Constitutional and Common Sense Steps to Reduce Gun Violence" on March 23, 2021 in Washington, DC. Many senators spoke both for and against gun control the day after a shooting in Boulder, Colorado where a gunman opened fire at a grocery store, killing ten people. (Photo by Tasos Katopodis/Getty Images)
Now playing
03:18
Berman on Cruz's latest tweet: 'The pot calling the kettle violent'
Now playing
01:57
Chuck Hagel criticizes Trump's statement on Afghanistan
gun laws shootings Comer pamela brown nr vpx _00015627.png
CNN
gun laws shootings Comer pamela brown nr vpx _00015627.png
Now playing
02:23
'I can't answer that': Kentucky lawmaker responds to CNN on gun policy
Now playing
02:39
National security adviser: Russia will face consequences if Navalny dies in prison
Rep. Marjorie Taylor Greene (R-GA) speaks during a press conference outside the U.S. Capitol on February 5, 2021 in Washington, DC. The House voted 230 to 199 on Friday evening to remove Rep. Marjorie Taylor Greene (R-GA) from committee assignments over her remarks about QAnon and other conspiracy theories.
Drew Angerer/Getty Images
Rep. Marjorie Taylor Greene (R-GA) speaks during a press conference outside the U.S. Capitol on February 5, 2021 in Washington, DC. The House voted 230 to 199 on Friday evening to remove Rep. Marjorie Taylor Greene (R-GA) from committee assignments over her remarks about QAnon and other conspiracy theories.
Now playing
03:20
Marjorie Taylor Greene lashes out at media after backlash over controversial caucus
(CNN) —  

President Donald Trump went after House Speaker Paul Ryan on Wednesday, saying one of the top Republican leaders in the President’s party “knows nothing about” birthright citizenship and “should be focusing on holding the Majority” in the House of Representatives “rather than giving his opinions” on the issue.

The comments come a day after Ryan threw cold water on the President’s assertion that he can use executive action to end the constitutional guarantee of citizenship to anyone born in the United States.

Ryan told a Kentucky radio station Tuesday that “you cannot end birthright citizenship with an executive order,” following remarks from the President indicating that Trump believes he can do just that, though many legal scholars disagree.

On Wednesday, the President tweeted, “Paul Ryan should be focusing on holding the Majority rather than giving his opinions on Birthright Citizenship, something he knows nothing about! Our new Republican Majority will work on this, Closing the Immigration Loopholes and Securing our Border!”

An aide to Ryan declined to comment to CNN on the President’s tweet.

Separately, a senior GOP aide defended Ryan when asked about Trump’s tweet.

“This is a great way to screw up the message a week before the election,” this aide told CNN. “First the birthright comment itself and now attacking the top Republican in Congress who is trying to save our majority.”

Trump repeated his claim that he can eliminate birthright citizenship via executive order later Wednesday, although he said his preference would be for Congress to pass legislation ending that constitutional right.

“I believe you can have a simple vote in Congress,” Trump told reporters as he left the White House. “You can do it through an executive order.”

“I’d rather do it through Congress because that’s permanent, but we can certainly do it through – I really (believe) we can do it through executive order,” he added, noting he had discussed the issue with legal scholars.

The President referenced an immigration executive order signed by his predecessor – the Deferred Action for Childhood Arrivals policy he had sought to undo. Trump suggested that if former President Barack Obama could execute such an order, he could end birthright citizenship through executive action as well. Trump and other Republicans at the time decried Obama’s move as defying federal law.

“If President Obama can get DACA approved … we can do this by executive order,” Trump said.

Ryan, who is leaving Congress at the end of his term in January, has been helping to campaign for Republicans as the midterms approach, including both vulnerable incumbents and new candidates in competitive races. When he spoke to radio station WVLK on Tuesday, he was in Kentucky campaigning for Republican Rep. Andy Barr, who is trying to hold onto his House seat.

During the interview on Tuesday, Ryan quickly sought to emphasize common ground with the President on immigration policy, despite saying that it was not possible to end birthright citizenship via executive order.

“Where we obviously totally agree with the President is getting at the root issue here, which is unchecked illegal immigration,” Ryan said. “We – House Republicans and this President – are in total agreement on the need to stop illegal immigration, to secure our border and fix our laws.”

The midterm elections, where Republicans are at risk of losing their majority in the House, take place next Tuesday.

Republicans are viewed as more likely to retain the Senate than the House and Democratic leaders are projecting confidence that they will win the lower chamber of Congress.

House Democratic Leader Nancy Pelosi predicted on Tuesday night that Democrats will take back the House, saying during an interview with late-night host Stephen Colbert, “We will win.”

This isn’t the first time Trump has lashed out at Ryan.

During the 2016 presidential campaign, Trump called Ryan a “very weak and ineffective leader” after Ryan told fellow Republicans he would no longer defend Trump after the infamous “Access Hollywood” tape surfaced in which Trump could be heard bragging about groping women.

CNN’s Jim Acosta, Elizabeth Landers, Rebecca Berg and Manu Raju contributed to this report.