I have success with outline custom styling when variant=\"outlined\" and I use notchedOutline in InputProps.
variant=\"outlined\"
notchedOutline
InputProps
Otherwise -
Not sure which version of material-ui you are using, but you can override classes as needed, see the following API documentation:
https://material-ui.com/api/outlined-input/#demos
https://material-ui.com/api/outlined-input/