If your flat mate has been told to self-isolate through NHS Test and Trace, then they will need to self-isolate for the number of days shown on the app. You do not need to self-isolate unless your flat mate shows symptoms. If they show symptoms, then they should arrange a test and the entire household will need to self-isolate.