See ["The locus of curves with prescribed automorphism group" by Magaard-Shaska-Shpectorov-Völklein](https://arxiv.org/abs/math/0205314), and the references therein.