A method performed by a foldable electronic device, wherein the foldable electronic device comprises a foldable housing including a first housing part, a second housing part rotatably coupled to the first housing part, and a third housing part rotatably coupled to the second housing part, a flexible display positioned across the first housing part, the second housing part, and the third housing part, a cover display positioned on a partial region opposite to the flexible display, at least one first sensor configured to detect a first angle between the first housing part and the second housing part, and at least one second sensor configured to detect a second angle between the second housing part and the third housing part, the method comprising:
- detecting a state of the foldable electronic device by using at least one of the at least one first sensor or the at least one second sensor;
- displaying a first screen on the cover display while the foldable electronic device is in a fully folded state;
- while displaying the first screen on the cover display, detecting that the first housing part or the third housing part of the foldable electronic device in the fully folded state is opened;
- and
- based on detecting that the first housing part or the third housing part is opened, maintaining display of the first screen on the cover display, and displaying a second screen on a partial region of the flexible display.