Adding this to the stylesheet this seems to work. You’ll need to play with it and check it more thoroughly than I have and see if it break anything…
.popup-body > .view {
min-width: 0vw !important;
max-width: 95vw !important;
}
you’ll need to do something similar for the height