There are two different ways of defining xyz tile layers for map visualisation. They are differing in the orientation of the naming of the y coordinate:
The TMS specification orders from Bottom Left and the Google/OpenStreetmap (WMS, 'slippy') specification orders from Top Left. So the y naming is inverted.
Here you can find the required mapbox gl entry point:
Vector->Scheme
This issue plotly/plotly.py#1610 and this thread plotly/plotly.py#2272 relates to this problem.