I am having some issue in lwc. I have created a button component. On clicking on the button a modal box popups. Now, if a user scrolls outside of modal box the whole page page moves. So, I want to remove the scrollbar of background page (lightning record page) when modal box appears.
Is it possible to remove the scrollbar of lightning record page when modal box appears and add it back when it is closed.