Using showCloseButton={false}
is the clean, recommended way to hide the top-right close icon without breaking modal accessibility or functionality.
<DialogContent showCloseButton={false}>
...
</DialogContent>
This is the best way to hide ("X") button in the top-right corner