Animation looks different in the iOS App but looks fine in preview

I am using Lottie to show animation in my iOS app. When I upgraded the Lottie to 4.0 the animation looks different but in the preview it looks fine. The same animation works better in 3.0, however it still not exactly same as it shows in preview… I am not sure what’s going wrong with that.