Whoopi Goldberg and Jeanine Pirro got into an explosive argument backstage at “The View” on Thursday — after an intense on-the-air exchange got even more heated behind-the-scenes, sources exclusively tell Page Six.

The confrontation ended with liberal Goldberg allegedly shouting, “F–k you, get the f–k out!” at President Trump supporter and Fox News host Pirro.

During the screaming match, Pirro told Goldberg, “I’ve done more for abused women than you will ever do,” we hear.

The trouble, sources told us, started before Pirro even went on-air to promote her new book, “Liars, Leakers, and Liberals: The Case Against the Anti-Trump Conspiracy” — when Pirro arrived at “The View” to learn that anti-Trump CNN contributor Ana Navarro was filling in for Joy Behar.

“When Jeanine arrived on set she was looking for a fight and refusing to be on with Ana, demanding [Ana] not be in the segment,” an insider said. “[Pirro] was yelling at [‘The View’] executive producer and her staff like, ‘You need to handle this.’”

Another source told us that Pirro “was upset that Ana was there because she wasn’t told until the last minute. Ana is 24-7 anti-Trump. Jeanine wasn’t yelling, but you could tell they felt like the segment was being hijacked by shoving in an anti-Fox, anti-Trump person.”

Navaro did appear in Pirro’s segments, and things came to a head on the ABC show when the “Justice with Judge Jeanine” host accused left-wing Goldberg of having “Trump Derangement Syndrome.”

Goldberg responded of Trump, “I have never seen anybody whip up such hate.”

A shouting match started with Pirro declaring, “You know what’s horrible? When people who shouldn’t be here end up murdering the children of American citizens!” and Goldberg shot back, “What is horrible is when the president of the United States whips up people to beat the hell out of people … Say goodbye. I’m done!”

Goldberg left the stage, but the fireworks went off again with the cameras off: Backstage when the two crossed paths, a source told us, “Jeanine tried telling her she’s fought for victims her whole life.” That’s when “Whoopi got in her face and said that they’ve known each other a long time, but still, ‘F–k you, get the f–k out of this building.’ Jeanine looked stunned.”

Another source told us, “Jeanine could have walked by her. There was one more segment to do. She could have walked by her easily, she put her finger in her face and said, ‘I’ve done more for abused women than you will ever do’ and that’s when Whoopi said, ‘You and I have never had a problem,’ before everything else was said.”

We hear the ABC show’s producers and Goldberg have reached out to Pirro to have a conversation about what happened.

Reps declined to comment.

Goldberg apologized to the audience for the on-air blowup, saying, “You saw me do something I very rarely do … I very rarely lose my cool and I’m not proud of it. I don’t like it. But I also don’t like being accused of being hysterical because that is one of the things I try not to be on this show.”