Lottie Hardware Acceleration

Hello,
i read that I can turn on hardware acceleration for Lottie animations with the line “animation_view.useHardwareAcceleration(true)” on Android. I just can’t figure out where to put this line.
For example its mentioned here.
If anybody could help me I would appreciate it.
Thank you

Looks like setting applies to an Android app, not a Webflow website.

So do you think it’s not possible in a browser?