Using plotly instead of matplotlib to plot graphs with MNE-python information

I am new to MNE-python and would like to know if It’s necessary to know the internal structure/implementation of MNE’s methods to rebuild the plot features using plotly instead of matplotlib, because, from my understanding, it is not possible to use matplotlib and send its graph instances directly to a web page and show them. So I am looking forward to understand how to extract the information and kind of find a way to graph the informations of the raw object (after loading an EDF) file using plotly in a way that it looks almost exactly like the matplotlib one. It would be nice to know if there’s an easier and more stablished way to do that, instead of doing it from scratch.