WASHINGTON — President Trump on Wednesday railed against Democratic leadership in New York and suggested upstate New Yorkers will find prosperity only by moving out of state.

“If New York isn’t going to treat them better, I would recommend they go to another state where they can get a great job,” Trump said in an interview with the Regional Reporters Association.

The commander-in-chief lamented the shift in Democratic leadership after the 2018 midterm elections.

Two GOP members of congress — Reps. John Faso and Claudia Tenney — were voted out of office in favor of Democratic Reps. Antonio Delgado and Anthony Brindisi.

Trump said his supporters will have better economic opportunities if they move to states with more manufacturing prospects.

“I love those people,” Trump said of upstate New Yorkers.

“Those people are my voters. They’ve been treated very badly. Upstate New York used to be 55-45, now it’s way in the other direction.”

It’s not the first time Trump has told New Yorkers to leave town.

He told the Wall Street Journal in July 2017 that residents of “upper New York” would have brighter futures if they moved to places like Wisconsin, which had scored the Foxconn manufacturing project.

Foxconn’s deal with Wisconsin has since gone south.

Gov. Andrew Cuomo has blamed Trump for putting an undue burden on New York and other blue states with the new GOP tax bill that caps state and local tax deductions at $10,000.

Trump said Wednesday he’s “open” to lifting the cap, but said New York leadership is the real issue.

“The problem is that states that have been really well run and don’t have debt, those states have a big advantage over states that have been poorly run, like New York and others, and have a tremendous amount of debt,” Trump said of his home state.

The president said he’s gotten an earful from some New York GOP reps about the troubles with the SALT tax and he’s “open to talking about it.”

“There are some people from New York who have been speaking to me about doing something about that, about changing things,” Trump said. “It’s been severe on them.”