We improve it by ensuring the same people don't dominate the justice system and that prosecutions still happen whenever they don't. It was Biden's and his AG's job to do something about this and he fumbled.
Trump was convicted, he still won. He probably would have won from jail as well.
So original question remains, what can be done?