Modalcontroller resize dynamically

i am trying to modalcontroller resize dynamically as received image size

.custom-modal-css .modal-wrapper {

// height: 50%;

top: 10%;

min-width: 70%;

margin: 0 auto;

position: absolute; 

display: block; 

border-radius: 20px; 

}

Hi @ankit-21 welcome to the community!
Can you give more details about what do you want to do?
Let me see, if I can help you.

i trying to content based modal size, please help me.