The No. 2 Democrat in the House told Neil Cavuto on "Your World" Tuesday that "physical barriers are part of the solution" to border security, but said President Trump was wrong to allow the government to partially shut down.

House Majority Leader Steny Hoyer of Maryland said Trump is "taking hostage the government of the United States," adding that the partial shutdown has instilled "instability and doubt" in America.

However, Cavuto pressed Hoyer on some of the language those on his side of the aisle have used to dismiss Trump's attempts to secure the southern border.

Last week, House Speaker Nancy Pelosi (D-Calif.) declared walls "immoral" in criticizing the president's actions.

I joined @RepKatieHill & @RepDavidTrone to visit federal agencies in DC & MD affected by the #TrumpShutdown. Our message to @POTUS is simple: #EndTheShutdown. We’ll continue voting to reopen government and put 800,000 federal employees back to work serving the American people. pic.twitter.com/7A4l6IdgRm — Steny Hoyer (@LeaderHoyer) January 16, 2019

Hoyer, who represents St. Mary's and Charles Counties, responded that "physical barriers" are part of a meaningful solution to the border security problems there.

"It depends what a wall is used for if it's moral or immoral," he said. "That's not the issue [though]. We (Democrats) want border security."

CLICK HERE TO SUBSCRIBE TO FOX NATION -- YOUR HOME FOR EXCLUSIVE PROGRAMMING AND SPECIALS FEATURING YOUR FAVORITE FOX NEWS CHANNEL PERSONALITIES

Hoyer, 79, said that he agreed that the Mexican border should be better secured, but said Trump is engaging in "hostage-taking" by furloughing government workers and suspending essential services in some departments.

Of DACA, which Trump offered on Saturday to extend protections therein for three more years, Hoyer said the president "created that problem" when he attempted to repeal former President Barack Obama's executive order protecting recipients of the Deferred Action for Childhood Arrivals benefits.

.@POTUS must stop holding government hostage and #EndTheShutdown today. Read my statement on President Trump's speech today: https://t.co/sIgLX5Gd1k pic.twitter.com/mNWxKMUxJj — Steny Hoyer (@LeaderHoyer) January 20, 2019

Hoyer also said that Pelosi, in her official capacity as Speaker, controls whether the president is allowed to address the chamber for the State of the Union.

He said that he is not involved in discussions between Pelosi and Trump on the matter, but said that nonetheless, the government should be fully re-opened and that a "rational discussion" must take place on national security.

Watch more above.

Bartiromo Calls Out Ocasio-Cortez's Comments on Billionaires: 'Quite Naive'

Immigration Lawyer: Majority of Clients Would Be Helped by Latest Trump Offer in Shutdown Talks