In Angular Material 16, the behavior of mat-form-field labels has been updated to align with the Material Design 3 specification. This update has introduced a new styling mechanism for labels that might cause labels to not float as expected after an upgrade. You can give try to following:-
Ensure appearance attribute is set. Default appearance is "fill" try setting it to outline.
Set "floatLabel" property