Anchor link not centering a horizontal scroll

I’m trying to build a horizontal website and wanted to use an anchor link when buttons are clicked (a survey website, so once the answer is clicked). However, when a button is clicked, the page slides to the next question but doesn’t center it. The question and the options are closer to the right side instead of being centered. What should I do?

Can you show the screenshot code?