Vice President Kamala Harris talks to Fox News anchor Bret Baier on Wednesday, October 16. (Fox News via CNN Newsource)

(CNN) โ€” Vice President Kamala Harris turned questions about her nearly four years in office into attacks on Republican rival Donald Trumpโ€™s record in a heated interview Wednesday on Fox News, her first appearance on the conservative network, as she courts disaffected Republican and independent voters.

Pressed on border crossings and violent crimes committed by undocumented immigrants during Joe Bidenโ€™s presidency, Harris repeatedly hammered Trump for opposing a bipartisan border security bill earlier this year. Asked about Bidenโ€™s mental acuity, she called Trump โ€œunstableโ€ and said โ€œwe should all be concerned.โ€

Harris also accused Fox News of whitewashing Trumpโ€™s most incendiary rhetoric, including the former president calling political rivals โ€œthe enemy within.โ€

โ€œHereโ€™s the bottom line: He has repeated it many times, and you and I both know that. And you and I both know that he has talked about turning the American military on the American people. He has talked about going after people who are engaged in peaceful protest. He has talked about locking people up because they disagree with him,โ€ a feisty Harris said after Fox News anchor Bret Baier played a clip of Trump complaining about political persecution.

โ€œThis is a democracy,โ€ she said. โ€œAnd in a democracy, the president of the United States โ€“ in the United States of America โ€“ should be willing to be able to handle criticism without saying he would lock people up for doing it.โ€

The interview came as Harris seeks to appeal to small slivers of undecided voters who have supported Republicans in the past but are uneasy with Trump. Her campaign has targeted those voters in recent days โ€“ with the vice president campaigning alongside former Wyoming Rep. Liz Cheney, veterans of Trumpโ€™s administration and others in the party who split with the former president over his attempts to overturn the 2020 election.

Harris held an event earlier Wednesday in Washington Crossing, Pennsylvania โ€“ a site not far from where George Washington led 2,400 Continental soldiers across the Delaware River on Christmas night 1776, a symbolic moment in the American Revolution โ€“ with more than 100 Republicans who are supporting her candidacy, including former Illinois Rep. Adam Kinzinger and former Georgia Lt. Gov. Geoff Duncan.

In the Fox News interview โ€“ itself a window into how the vice presidentโ€™s campaign has sought to reach right-leaning audiences โ€“ Harris also differentiated herself from President Joe Biden more clearly than she has in the past, telling Baier that she would bring new ideas and experiences to the White House.

โ€œMy presidency will not be a continuation of Joe Bidenโ€™s presidency,โ€ Harris said.

โ€œI represent a new generation of leadership,โ€ she said. โ€œI, for example, am someone who has not spent the majority of my career in Washington, DC. I invite ideas, whether it be from the Republicans who are supporting me who were just onstage with me minutes ago, and the business sector and others who can contribute to the decisions I make.โ€

Transgender care

Baier asked Harris about a Trump campaign ad that points to Harris saying she supported providing gender-affirming care to prisoners in 2019, when she was a California senator and Democratic presidential candidate.

Pressed about whether she currently supports using taxpayer dollars to fund gender-affirming care for transgender inmates, including undocumented immigrants, Harris said she would โ€œfollow the law.โ€

โ€œI will follow the law, and itโ€™s a law that Donald Trump actually followed. Youโ€™re probably familiar with, now itโ€™s a public report that under Donald Trumpโ€™s administration, these surgeries were available to on a medical necessity basis, to people in the federal prison system,โ€ Harris said.

Harris was referencing a New York Times report that outlined the Bureau of Prisons provided gender-affirming services under the Trump administration.

โ€œI think, frankly, that ad from the Trump campaign is a little bit of like throwing, you know, stones when youโ€™re living in a glass house,โ€ she said.

Brian Hughes, a Trump campaign senior adviser, told the Times: โ€œKamala Harris has forcefully advocated for transgender inmates to be able to get transition surgeries, President Trump never has.โ€

Pressed again by Baier about whether she would advocate using taxpayer dollars for โ€œgender reassignment surgeries,โ€ Harris again said she โ€œwould follow the law, just as I think Donald Trump would say he did.โ€

Fine line on immigration

Harris repeatedly pivoted to the bipartisan border security bill blocked by congressional Republicans earlier this year when asked about the Biden administrationโ€™s handling of the US-Mexico border, taking a more hawkish stance while remaining vague on some of her previously held positions.

Baier pressed Harris on the Biden administrationโ€™s decision early on to repeal Trump-era policies, in what amounted to testy exchanges between the two, at times talking over one another.

He asked how many undocumented immigrants Harris would estimate the administration has released into the United States during Bidenโ€™s presidency.

โ€œJust a number. Do you think itโ€™s 1 million, 3 million?โ€ Baier asked.

โ€œBret, letโ€™s just get to the point, OK? The point is that we have a broken immigration system that needs to be repaired,โ€ Harris said.

Over multiple administrations, migrants have been released from custody after vetting when resources are stretched because border facilities are not equipped to hold people for long periods of time. That was exacerbated in recent years amid a surge of migrants crossing the border.

Baier asked Harris about Laken Riley, the 22-year-old Georgia nursing student who was killed while jogging in February. The incident has often been invoked by Republicans as an example of the administrationโ€™s handling of border security.

The suspect, Jose Antonio Ibarra, an undocumented immigrant from Venezuela, was arrested in 2022 after entering the United States illegally but was released for further processing.

โ€œFirst of all, those are tragic cases. Thereโ€™s no question about that. There is no question about that, and I canโ€™t imagine the pain that the families of those victims have experienced for a loss that should not have occurred,โ€ Harris said.

โ€œIt is also true that if a border security had actually been passed nine months ago. It would be nine months that we would have had more border agents at the border, more support for the folks who are working around the clock trying to hold it all together,โ€ she added.

Harris maintained over the course of the interview that the immigration system is broken โ€“ a position held by Democrats and Republicans.

โ€œI have no pride in saying that this is a perfect immigration system,โ€ she said. โ€œIโ€™ve been clear โ€” I think we all are โ€” that it needs to be fixed.โ€

Asked about policy positions she held when running for president in 2019, including not excluding undocumented immigrants from benefits like health care, Harris remained vague, saying only: โ€œIโ€™m very clear that I will follow the law.โ€

Harris also said that she would not decriminalize illegal border crossings if elected.

โ€œI do not believe in decriminalizing border crossings, and Iโ€™ve not done that as vice president,โ€ she said. โ€œI will not do that as president.โ€