Unity 2021.3 or higher. Just press the Add Component button on any GameObject that has a Rect Transform and select Safe Area Fitter.