Change offset depending on position of tooltip

I have a tooltip (using a focus group) which goes off page since the refernce element is too close to the bottom of the screen (also the tooltip is in the Bottom Sheet Plugins by minimum studio). Is it possible to move it to the side when the reference icon is too close to the bottom of the screen?
image

I asked a similar question in the past and got an answer. I don’t recall the post specifically and won’t search the forum for you for the post, but if you search you should find it.

Offset group focus reference element would be the phrase to search with…could also in the search use the tag feature and tag my handle.

I looked through your posts and in the forum, but it seems like there is no way to dynamically change the position of the groupfocus, either by changing the reference element or by dynamically adjusting the offset.