House Speaker Paul Ryan says he wants to stop the mass separation of children from their families along the border, but his bid to fix it is pathetic. And President Trump’s claim that Democrats need to change the relevant law is no better.

The immediate cause of the crisis is Team Trump’s decision to start prosecuting illegal border-crossers, rather than simply deporting them. Because the law severely limits how long the feds can detain the children, immigration officials on the ground then have no choice but to break up the families.

Ryan’s answer is to stick a change of the law into the two big immigration bills he has the House voting on this week. But there’s no way the Senate will pass either one — indeed, not much chance the House will.

Anyway, making it so Immigration and Customs Enforcement can detain the kids along with their parents is only a minor improvement — since ICE is already running out of space to hold people, and looking at “tent cities” as a supposedly temporary expedient.

You can bet that critics will start calling these “Trump’s concentration camps,” and the term will catch on if they’re full of kids.

The polls were starting to suggest that Republicans might not lose big in this November’s midterm elections, but they’ll turn back the other way if this keeps up — and rightly so.

It’s not just that this looks terrible in the eyes of the world. It is terrible: at least 2,000 children ripped from their parents’ arms, sometimes literally, in just the first six weeks.

Maybe the White House figures families will stop coming once word gets out, but they won’t all stop: Some are fleeing truly horrific situations back home.

We recognize that returning to the policy of two months back creates some perverse incentives: Bring kids along, and you’ll just be deported if you’re caught. But at least switching back avoids having the US government earning comparisons to the Nazis.

If the president doesn’t want to admit defeat, he can just add this to the long list of things he blames on Attorney General Jeff Sessions. Trying to tough this one out is guaranteed disaster.