Is it possible to use 'lines' when a graph is zoomed out and 'lines+markers' when a graph is zoomed in?

I made a time-series plot of data from a sensor using go.Scattergl. It is important to see each data point, so I used ‘lines+markers’, but when fully zoomed out this is a mess, as the data is quite large. Is it possible to use ‘lines’ when zoomed out and ‘lines+markers’ when zoomed in without re-plotting the entire graph?

If anyone has a better solution to the problem, that would also be appreciated.

Unfortunately, I am not able to share the code or data.