They can just suspend the Constitution. That’s what Hitler did, with the Weimar Constitution.
Hells bells, you needn’t go so far afield. Lincoln did it.