Page refresh causes page to scroll to the top

I added pagination for my posts. For example, when I click on page 2, the scroll goes to the top of the page. But I want it fixed. How can I do it ?

Can you share a link to your repo and site?

Can you at least share what the code is saying? E.g. inspect element or view source and see where page 2 button is pointing

Could be config issue with your use of the plugin or maybe you have html conflicts.