I was trying to fix this issue today when I was using Material React Table that wraps around MUI Table. There is an elevation prop that needs to be passed into the table paper component.
For people using Material React Table, this prop will be required to be passed into the table:
muiTablePaperProps: {
elevation: 0,
}