How to get ahold of IonContent element from deep within?

I have created an accordion list in my app, but when the user clicks on the item that is near the bottom of the screen, most of the sub-list is added off-screen, so that the user doesn’t even know it is there. So, I need programmatically scroll the screen up a bit. I have written code (following Josh Morony’s excellent tutorial https://www.joshmorony.com/animating-list-items-in-ionic-with-intersection-observer-api/) to observe when the new elements are off-screen.

The only way I can find to programmatically scroll is to call one of the scroll functions on IonContent.

However, the trigger for this is the user clicking on a card way deep down in the DOM – many levels below the ion-content element.

What is the best way to get a handle on the IonContent element so that I can call the scrollToTop() method on it (or some such)?

Thanks.

Vic