The embattled mayor of Istanbul is the opposition party's candidate for the next presidential election.