add an id to material ui dialog root code example Example: material ui chaging the size of a dialog fullWidth={true} maxWidth={'md'} // 'sm' || 'md' || 'lg' || 'xl'