As opposed to staying where you are, where you
do know it's going to be bad?
I may have gotten lucky at avoiding jobs that turn out to be stinkers. Hasn't happened to me in the last three job switches. (One turned into a stinker after I'd been there a few years, due to management changes. I left.) But I don't think that the odds are as bad as you seem to think they are.
But really, you have only three options. You can put up with it, you can fix it, or you can leave. You don't want to put up with it. You sound like you're asking for how to fix it, but I'm not sure that you realistically can. (Certainly I've never been able to.) That leaves only one option.