Mayor wins if they are alive and there is no execution during the final 3.
Vortox wins if the game moves to night and no one was executed prior
Assuming I am reading the rules correctly, if the game got to the final 3 and no one is executed, the mayor would win since their ability ends the game before it would go to night again.