Where in the Constitution does it say the state has a right to a fair trial?
Almost all the procedural rights (amendments 4-8) originally restricting the federal government have since been made applicable to the states. The purpose of these was to produce a fair trial.