disable underline in mat form field underline code example Example: matinput remove underline ::ng-deep .mat-form-field-underline { display: none; }