How to set height width of ion-modal and remove scrollbar in ionic 5 or 6 please help

I am using ionic 6 in that not able to set height width or ion-modal also getting scrollbar I need to remove scrollbar and need set height width

Filter and Sort Filter by : STATUS : {{item.text}}
Reset To Default Apply Changes

please help me

In Ionic 6, I do the following to set the width and height for IonModal. For Ionic 5 it is similar but a little different since in v6 IonModal was converted to a real web component.

<IonModal class="auto-height" style="--width: 95%">
    <div class="inner-content">
        <!-- Some content -->

<style> {
    --height: auto;
} {
    position: relative;
    display: block;
    contain: content;
} .inner-content {
    max-height: 80vh;
    overflow: auto;