Centering the animation

I have been looking for a solution all day to this. Every time I insert a animation into my webpage it is aligned right. How do I get it to center? Nothing I do in my page editor seems to have any effect short of brute force adding margin - but this wont work with responsive design. i am just adding the following html to the page:

script src=“”>
<lottie-player src=“xxx” background=“transparent” speed=“1” style=“width: 150px; height: 150px;” loop="" autoplay=""

If anyone has a solution it would be much appreciated!