You cannot become the mayor in Animal Crossing: Wild World. That feature is not available in that particular title, so there is no way to take the mayor's role there.