Customize chat modal position

I was using .intercom-messenger-frame to customize the chat modal position.
But it’s jumping from the original position to new position on first show up and no jumping on the second show up.
Seems like the classname was attached to the dom dynamically.

Is there any other better idea to customize the modal position?

first show up:

second and third show up: