An electronic device comprising: a cover glass; a back cover facing the cover glass; a display including: a rigid area exposed through the cover glass, and a ductile area extending from the rigid area; and a processor electrically connected to the display, wherein the processor is configured to: display a first application on the rigid area of the display; and when at least a portion of the ductile area is exposed due to a pressure applied to the cover glass or the back cover: remove the first application from a first area including a portion of the rigid area, and display a second application in the first area from which the first application is removed, display the first application in a second area including a remaining portion of the rigid area and the ductile area, output a navigation bar in the ductile area, receive an input for selecting one of the first area and the second area, control the selected area of the first area or the second area by the navigation bar based on the received input, and wherein the size at which the first application is displayed before the display is expanded according to the exposure of the ductile area and the size at which the first application is displayed after the display is expanded are the same. a cover glass; a back cover facing the cover glass; a display including: a rigid area exposed through the cover glass, and a ductile area extending from the rigid area; and a rigid area exposed through the cover glass, and a ductile area extending from the rigid area; and a processor electrically connected to the display, wherein the processor is configured to: display a first application on the rigid area of the display; and when at least a portion of the ductile area is exposed due to a pressure applied to the cover glass or the back cover: remove the first application from a first area including a portion of the rigid area, and display a second application in the first area from which the first application is removed, display the first application in a second area including a remaining portion of the rigid area and the ductile area, output a navigation bar in the ductile area, receive an input for selecting one of the first area and the second area, control the selected area of the first area or the second area by the navigation bar based on the received input, and wherein the size at which the first application is displayed before the display is expanded according to the exposure of the ductile area and the size at which the first application is displayed after the display is expanded are the same. display a first application on the rigid area of the display; and when at least a portion of the ductile area is exposed due to a pressure applied to the cover glass or the back cover: remove the first application from a first area including a portion of the rigid area, and display a second application in the first area from which the first application is removed, display the first application in a second area including a remaining portion of the rigid area and the ductile area, output a navigation bar in the ductile area, receive an input for selecting one of the first area and the second area, control the selected area of the first area or the second area by the navigation bar based on the received input, and remove the first application from a first area including a portion of the rigid area, and display a second application in the first area from which the first application is removed, display the first application in a second area including a remaining portion of the rigid area and the ductile area, output a navigation bar in the ductile area, receive an input for selecting one of the first area and the second area, control the selected area of the first area or the second area by the navigation bar based on the received input, and wherein the size at which the first application is displayed before the display is expanded according to the exposure of the ductile area and the size at which the first application is displayed after the display is expanded are the same.