Lottie file as background cover - Responsive

Hello all! I would like to ask you if There is a way to have a lottie file as a background cover in a div block that changes size in responsive mode. We managed to make it play in landscape big ratio but when it comes to the portrait ratio the lottie stays in 100% width without scaling up to cover the whole div block.

Thank you all for your time!