The answer to immigration, for those that view it as a problem, is to make the places people are leaving more desirable to stay: social welfare, sustainable energy, affordable food and housing, and security - both physical and financial. The US has been trying hard to make itself undesirable for immigrants (suddenly, after decades of turning a blind eye in exchange for cheap labor), instead of focusing on helping to make the living situation in south America more tenable.
It’s kind of what we get for completely wrecking the global south tbh - the number of democracies we overthrew, the drug cartels we propped up, the damage we did is finally coming to bear fruit and it’s just as sour as the soil we tilled.