Scrolling relatively to specific web element-rather to scrolling relatively to the web body

Hello. I’m using Playwright language, I’m trying to look for a function which I can scroll down to an specific web element. I know there exists a function - IscrollTo(); which is relative to the body of the window.
My problem is due to in my specific web, the body is defined to be overflow: hidden. This means that any element that isn’t in the current viewport isn’t reachable in the test. So I want to somehow make a helper that supports this kind of scrolling, which will be relative to a web element.