For me, this workaround did not work for both desktop computers and mobile phones. I slightly adjusted the proposed workaround to make it clear.
@media (orientation: portrait) { .carousel-item.active, .carousel-item-next, .carousel-item-prev { display: block; width:100%; height:auto; } } @media (orientation: landscape) { .carousel-item.active, .carousel-item-next, .carousel-item-prev { display: block; width:100%; height:96vh; } }
source share