An electronic device , comprising: a housing including a first surface facing a first direction, a second surface facing a direction opposite the first direction, and lateral sides surrounding a space between the first surface and the second surface; a touch screen display exposed through the first surface between the first surface and the second surface; at least one pressure sensor configured to detect a pressure signal indicating a level of pressure by an external object within a predetermined distance to at least two areas facing each other on the lateral sides; a wireless communication circuit ; at least one processor electrically connected to the touch screen display , the pressure sensor , and the wireless communication circuit ; and a memory electrically connected to the at least one processor and configured to store at least one application program, wherein the memory stores instructions which, when executed, cause the at least one processor to: display a first user interface , UI, including at least one first item on the touch screen display ; detect a first pressure signal through the at least one pressure sensor ; when the detected first pressure signal is greater than or equal to a first preset threshold value, display a second UI including at least one second item on at least a part of the touch screen display where the first UI is not displayed; detect a second pressure signal through the at least one pressure sensor ; and when the detected second pressure signal is greater than or equal to a second preset threshold value greater than the first preset threshold value, display a third UI . a housing including a first surface facing a first direction, a second surface facing a direction opposite the first direction, and lateral sides surrounding a space between the first surface and the second surface; a touch screen display exposed through the first surface between the first surface and the second surface; at least one pressure sensor configured to detect a pressure signal indicating a level of pressure by an external object within a predetermined distance to at least two areas facing each other on the lateral sides; a wireless communication circuit ; at least one processor electrically connected to the touch screen display , the pressure sensor , and the wireless communication circuit ; and a memory electrically connected to the at least one processor and configured to store at least one application program, wherein the memory stores instructions which, when executed, cause the at least one processor to: display a first user interface , UI, including at least one first item on the touch screen display ; detect a first pressure signal through the at least one pressure sensor ; when the detected first pressure signal is greater than or equal to a first preset threshold value, display a second UI including at least one second item on at least a part of the touch screen display where the first UI is not displayed; detect a second pressure signal through the at least one pressure sensor ; and when the detected second pressure signal is greater than or equal to a second preset threshold value greater than the first preset threshold value, display a third UI . display a first user interface , UI, including at least one first item on the touch screen display ; detect a first pressure signal through the at least one pressure sensor ; when the detected first pressure signal is greater than or equal to a first preset threshold value, display a second UI including at least one second item on at least a part of the touch screen display where the first UI is not displayed; detect a second pressure signal through the at least one pressure sensor ; and when the detected second pressure signal is greater than or equal to a second preset threshold value greater than the first preset threshold value, display a third UI . <EOS>