What you’re asking for is a dictator. Politicians can’t unilaterally decide what happens by design. I think what you mean to say is that you want to prosecute politicians if they don’t vote in alignment with their stated goals, but even that is loaded in the US.
Let’s assume we’re talking about a liberal politician.
If he or she ran on banning guns, introduced legislation to ban guns, but some conservative added a rider to ban abortion, should he or she be prosecuted for voting against their own bill? Because that kind of nonsense happens all the time.