As I think there is still no ETA to fix the “scroll to top anchor” in V5.x.x, I made my own. It is very simple to install and you can customize it all you want. If you are interested, I explain how to install it with a link to the template in the following document.
(https://docs.google.com/document/d/1MxW8Fl0_vBXNkw1n_ThxwKsV8LJ_IyxFFOI6S_f0_5Q/edit?usp=sharing)
Let me know if it works for you!
Patrick