Note: Gretchen was made into a cyborg three years after Doofenshmirtz was ruler and she was a Firestorm Girl.
After becoming a Firestorm Girl and defeating the alternate Heinz Doofenshmirtz, Gretchen became a goverment agent alligned with her mother and grandmother, and her nemesis was Tanya Lamal. Similiar to how the alternate Doofenshmirtz and alternate Perry, the alternate Tanya made Gretchen into a cyborg to use her for evil, therefore making her betray the Resistance.