Is there a way to add a vertical line with hovertext to a graph that scales automatically (yref to paper)?

I am trying to add a vertical line in a graph that displays text if you hover it.
A vertical line that always goes from top to bottom can be done with shapes and setting yref=‘paper’. But unfortunately you cant add hovertext to shapes.
Then I tried to plot a vertical line. With that you can set up hover text, but then it doesnt scale infinitely if you zoom out for example.

Is there any way to get both, hovertext and a vertical line over the graph?

You could try making a line trace on a second y axis, then hide that axis and make it fixedrange: true
https://codepen.io/alexcjohnson/pen/dyyXoQz?editors=1010