The claim that blaming migrants and the able-bodied poor contributed to Trump's electoral success, while systemic struggles of working people helped Zohran Mamdani win his election, is largely supported by political analysis and voter behavior studies.
Blaming migrants and the able-bodied poor is why Trump won this election, but a system where working people struggle so much is why Mamdani won his election.

FactVerify
Source: factverify.com
Key Evidence
Political commentary highlights Trump's use of migrant and poor scapegoating as a factor in his electoral success.
brookings.edubrookings.eduWhy Zohran Mamdani’s victory matters: How it happened, what it means
Analysis of Mamdani's victory points to his appeal among working-class voters concerned with affordability and systemic economic challenges.
These findings support the claim's core components about voter motivations in both elections.
What the Evidence Shows
The claim can be broken down into two parts: first, that Donald Trump's victory was influenced by blaming migrants and the able-bodied poor; second, that Zohran Mamdani's election success was due to a system where working people struggle significantly. Regarding Trump, political analysts and commentators have noted that his rhetoric often targeted migrants and marginalized groups as scapegoats for economic and social problems, which resonated with certain voter bases.brookings.edubrookings.eduWhy Zohran Mamdani’s victory matters: How it happened, what it means
This aligns with the idea that blaming these groups was a factor in his electoral appeal. On the other hand, Mamdani's victory in the New York City mayoral Democratic primary is widely attributed to his focus on economic issues affecting working-class voters, including affordability and systemic inequality. Reports indicate that voters in traditionally Trump-supporting districts backed Mamdani because of his emphasis on addressing economic struggles rather than identity politics alone.
This suggests that systemic economic hardship was a key driver behind his success. However, the claim simplifies complex electoral dynamics by attributing Trump's win solely to blaming migrants and the poor, and Mamdani's win solely to economic struggle. Both elections involve multiple factors including party dynamics, candidate appeal, and broader political contexts.
Nonetheless, the core assertion about the role of scapegoating versus systemic economic issues is supported by credible sources. Therefore, the claim is mostly true but somewhat reductive in its framing.