New York City Mayor Bill de Blasio Bill de BlasioOVERNIGHT ENERGY: California seeks to sell only electric cars by 2035 | EPA threatens to close New York City office after Trump threats to 'anarchist' cities | House energy package sparks criticism from left and right EPA threatens to close New York City office after Trump threats to 'anarchist' cities New Year's Eve in Times Square to be largely virtual amid pandemic MORE said on Sunday that fellow Democratic White House hopeful Joe Biden Joe BidenPelosi slams Trump executive order on pre-existing conditions: It 'isn't worth the paper it's signed on' Hillicon Valley: Subpoenas for Facebook, Google and Twitter on the cards | Wray rebuffs mail-in voting conspiracies | Reps. raise mass surveillance concerns Fox News poll: Biden ahead of Trump in Nevada, Pennsylvania and Ohio MORE should "absolutely" answer for the deportation of undocumented immigrants during the Obama administration.

"Let's be honest, I think there’s a lot of issues where Democrats and Republicans, unfortunately, have some responsibility for the problems," de Blasio told CNN's Jake Tapper Jacob (Jake) Paul TapperThe media's misleading use of COVID-19 data Julia Louis-Dreyfus: 'We can't spend much time grieving' Ginsburg Pence aide dismisses concerns rushed vote on Trump nominee will hurt vulnerable senators MORE Sunday on "State of the Union."

"That was a mistake, in the end what we needed a very different approach," he added. ADVERTISEMENT

De Blasio also said that President Trump Donald John TrumpSteele Dossier sub-source was subject of FBI counterintelligence probe Pelosi slams Trump executive order on pre-existing conditions: It 'isn't worth the paper it's signed on' Trump 'no longer angry' at Romney because of Supreme Court stance MORE's plan to deport undocumented immigrants in mass U.S. Immigration and Customs Enforcement raids are an attempt to further "divide Americans."

Trump has said the raids will begin Sunday.

But while criticizing Trump's approach to the issue, de Blasio said the Obama administration, and therefore Biden, who served as vice president, has to answer for its approach to undocumented immigration.

When asked by Tapper if Biden should answer for the rates of deportation under the Obama administration, de Blasio said “absolutely.”

"Democrats often been scared of their own shadows," de Blasio said, adding that too often members of his party listen to "attacks on Fox News."

He said Democrats have made mistakes and will have to face a "moment of truth" to "decide who we are."

--This report was updated at 9:56 a.m.