The rightward shift in certain NYC demographics ultimately had little to do with Trump, though he tapped into it. It has been obvious for the last few cycles. 

It is why Eric Adams is our Mayor now.

Housing is always key, but the shift originates with crime/quality of life stuff in 2020/2021.