Problem with lottie (screen orientation)

Good day.
Lottie component stops playing animation after changing screen orientation. How to deal with this?
My application has a landscape orientation of the screen, if you run it when the screen is in portrait orientation, the animation will not play. but if you turn the screen over and run the application, then everything works.
Also, when displaying an ad unit that has a portrait orientation, all animations stop after the ad unit is closed.