Unfortunately, I cannot tell you exactly but just let me know which builder you use and I will explain how to make this functionality on your page and how your one-page menu looks.
Here is an example of using it with the button in the header and any section on the page. I have set the “Link” to the ID of the appropriate section on the page.