Zohran Mamdani has been icing out ally Bill de Blasio amid the former mayor’s cheating scandal — and CNN also decided not to renew his contract at the network, The Post has learned.

The mayor-elect’s transition team began to sour on de Blasio when his chaotic love life grabbed headlines and he became increasingly unresponsive, sources said.

But getting sidelined isn’t making the Hizzoner-turned-horndog sweat.

He’s responded by jetting off to Mexico with his new belle, South Tucson, Ariz., Mayor Roxanna Valenzuela, sources said.

Former New York City Mayor Bill de Blasio walking on a sidewalk.De Blasio has been iced out by the Mamdani transition as his love affairs make headlines. Luiz C. Ribeiro for New York Post

“He’s dying for attention,” one insider quipped, saying de Blasio had orchestrated the media attention surrounding his recent sit-down with Police Commissioner Jessica Tisch and incoming City Council Speaker Julie Menin.

The source said de Blasio hoped the high-profile meetings would signal to Mamdani’s transition team that the seamy headlines hadn’t affected his standing and that he still wielded influence with his former staffers, such as Tisch.

De Blasio, 64, had started to fall off after The Post reported that he had cheated on his girlfriend, 41-year-old political strategist Nomiki Konst, who actively supported Mamdani’s mayoral campaign.

He became unresponsive and missed at least one meeting, which had been set up to help land someone a job, sources said.

Mamdani, 34, and his team were also apparently turned off after hearing that de Blasio was actively promising people he would wield influence in the incoming mayor’s administration, according to sources.

De Blasio was a political pundit for CNN as part of it’s mayoral election and Mamdani coverage, but the network opted not to renew his contract recently, a source said.

New York City Mayor-elect Zohran Mamdani speaking at a podium with a sign reading "A New Era for New York City."It was unclear if the cold shoulder was directly connected to de Blasio recent cheating news. Andrew Schwartz/SIPA/Shutterstock

For months, the former mayor has been arranging backroom meetings for people who worked in his administration to help them nab a spot in City Hall or another agency under the new socialist mayor.

“He was the one who handed them Dean,” a source said, referring to Mamdani’s pick for first deputy mayor, Dean Fuleihan, who worked as budget director and a top deputy for Blaz.

De Blasio was also integral in running a shadow campaign aimed at preventing ex-Gov. Andrew Cuomo from making a political comeback, which politicos believe earned him a seat at the table as the new mayor builds out his admin.

Insiders added that de Blasio hasn’t been the only one getting the cold shoulder recently from the Mamdani team, raising concerns about the incoming administration that hasn’t announced an appointment in almost a month.

Mamdani’s spokesperson and de Blasio didn’t return requests for comment.