[5] She was invested as mayor with the votes of the eight councillors from her party, seven from Ahora Getafe and the one from the United Left (IU); she became the first woman to hold the office.
[3] She decided against running for re-election of the party office two years later and joined the eventually successful campaign of José Manuel Franco.
[12][13] Hernández was re-elected for a third term in the 2023 Spanish local elections, forming a majority with the support of the ten councillors from her party, plus three from Más Madrid and two from Unidas Podemos.
[14] In October 2023, Hernández's administration removed the name of Getafe-born footballer Alfonso Pérez from the city's Estadio Coliseum, which is owned by the municipality and leased to La Liga club Getafe CF.
[15] The decision was criticised by the President of the Community of Madrid, Isabel Díaz Ayuso of the People's Party (PP), who said that Pérez had the right to hold opinions contrary to Hernández's.