In my case the accepted answer didn't work well - when switching between tabs the width of body
of specific tab was changing and it didn't look nice, so I added mat-tab-link to resolve it
::ng-deep.mat-tab-link, ::ng-deep.mat-tab-label, ::ng-deep.mat-tab-label-active{
min-width: 97px!important;
}