An electronic device comprising: a first housing including a first face and a second face, the second face being a rear side of the first face; a second housing including a third face and a fourth face, the fourth face being a rear side of the third face; a folding part rotatably connecting the first housing and the second housing to each other; a flexible display disposed on the first face and the third face across the folding part and including a first area corresponding to the first face and a second area corresponding to the third face; at least one camera exposed through at least a portion of the fourth face; at least one memory storing instructions; and at least one processor , wherein the at least one processor is configured, when the instructions are executed, to: determine an orientation of the electronic device based on a first angle between the first housing and a ground, and determine a direction of the at least one camera relative to the ground in which the at least one camera is pointed while a camera application is executed based on the determined orientation and a second angle between the first housing and the second housing, identify at least one of the first area or the second area as an area in which a preview image acquired through the at least one camera is to be displayed based at least on the determined direction and the determined orientation, and display the preview image, acquired through the at least one camera, in the identified area using the flexible display. a first housing including a first face and a second face, the second face being a rear side of the first face; a second housing including a third face and a fourth face, the fourth face being a rear side of the third face; a folding part rotatably connecting the first housing and the second housing to each other; a flexible display disposed on the first face and the third face across the folding part and including a first area corresponding to the first face and a second area corresponding to the third face; at least one camera exposed through at least a portion of the fourth face; at least one memory storing instructions; and at least one processor , wherein the at least one processor is configured, when the instructions are executed, to: determine an orientation of the electronic device based on a first angle between the first housing and a ground, and determine a direction of the at least one camera relative to the ground in which the at least one camera is pointed while a camera application is executed based on the determined orientation and a second angle between the first housing and the second housing, identify at least one of the first area or the second area as an area in which a preview image acquired through the at least one camera is to be displayed based at least on the determined direction and the determined orientation, and display the preview image, acquired through the at least one camera, in the identified area using the flexible display. determine an orientation of the electronic device based on a first angle between the first housing and a ground, and determine a direction of the at least one camera relative to the ground in which the at least one camera is pointed while a camera application is executed based on the determined orientation and a second angle between the first housing and the second housing, identify at least one of the first area or the second area as an area in which a preview image acquired through the at least one camera is to be displayed based at least on the determined direction and the determined orientation, and display the preview image, acquired through the at least one camera, in the identified area using the flexible display. <EOS>