I also have the same requirement. Do you fix the issue?
Can you not use JS Action for this? like
if you somehow float a JS Action button on top of your HTML file and also you know the specific id of the HTML element to scroll to, you can do
document.getElementById("test-head").scrollIntoView()
Have you tried this?