Fox News contributor and former House Speaker Newt Gingrich is not optimistic about a bipartisan compromise to end the government shutdown anytime soon.

Appearing on "America's Newsroom" Friday, he explained that it would be "very expensive" politically for President Trump to back off his demand for $5 billion in funding for his long-promised border wall and additional border security measures.

Likewise, Gingrich said, House Speaker Nancy Pelosi cannot easily back off her vow not to fund the wall, since the left-wing of the Democratic Party is "deeply, bitterly hostile" to Trump and few lawmakers are calling for compromise.

"She represents a San Francisco liberal view, which now, by the way, is no longer the left-wing of her party," Gingrich said. "She's now sort of a moderate by the standard of the younger, more aggressive and more radical members."

WATCH: Liberal College Students Say They're Not Big Fans of Speaker Pelosi

'When She Grabbed the Gavel, She Came Unraveled': Watters Blasts Pelosi

He said Pelosi must realize that she has nothing to gain by "giving in" to Trump, while the president's only options -- other than backing down on the wall -- are to veto legislation, stop legislation in the Senate or attempt to sway public opinion on border security.

"If enough people decide that they want border security, that they really are worried about things like the illegal alien that shot the policeman in California, I think there's a point where some Democrats will start to say, 'Look, we've got to find a solution,'" Gingrich said.

He said that, however, could easily be weeks and weeks away.

Watch more from Gingrich above, including his reaction to Mitt Romney's scathing anti-Trump op-ed.

Biggs: Dems Playing Politics, Ignoring National Security 'Crisis' at the Border

Swalwell: 'Wrong' to Say 'Destroying Trump' Is Main Priority of New Dem-Led House

McDowell: If Mexico Is Paying for the Wall, Why Is Gov't Still Shut Down?