Switching Kylian Mbappe to a wider position worked as he scored and Real Madrid won 3-0 away against Leganes in the Spanish league.