If you ever need to temporally disable scrolling on a specific scrollable element, then you will need to use JavaScript or CSS for it. Depending on your use case, you can choose between JavaScript and CSS solutions. Although in general terms the CSS solution is the most adopted one, JavaScript offers you a bit more of control and flexibility and allows you to decide how exactly you want to stop the scrolling.
I have used JS in this site to stop scrolling on video playing/modal on.
In questa pagina del sito puoi guardare il video online Preventing page scroll using JavaScript della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Atihar Hossen Mahir 20 novembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 597 volte e gli è piaciuto 3 spettatori. Buona visione!