An electronic device comprising: a housing; a display viewed through at least a portion of the housing and displaying a screen using a plurality of pixels; a display driver IC for providing a data voltage and a light-emission signal for driving each of the plurality of pixels to the display; and a processor operatively connected to the display driver IC, wherein the display includes: a transistor layer including a plurality of light emitting elements; an encapsulation layer for covering the transistor layer; a touch electrode disposed on the encapsulation layer; and a protective layer disposed on the touch electrode, wherein the protective layer includes a first area where a first protective layer having a first refractive index is disposed and a second area where a second protective layer having a second refractive index different from the first refractive index is disposed, wherein the second area is disposed to overlap with at least one of the plurality of light emitting elements in a first direction, wherein a first boundary that is an interface between the first protective layer and the second protective layer forms an inclination of a first angle with the first direction, and wherein the processor is configured to: control the display driver IC to drive the plurality of light emitting elements arranged in the first area and the second area when the display is in a normal mode for displaying the screen at a first viewing angle; and control the display driver IC to only drive the plurality of light emitting elements arranged in the second area when the display is in a privacy mode for displaying the screen at a second viewing angle narrower than the first viewing angle. a housing; a display viewed through at least a portion of the housing and displaying a screen using a plurality of pixels; a display driver IC for providing a data voltage and a light-emission signal for driving each of the plurality of pixels to the display; and a processor operatively connected to the display driver IC, wherein the display includes: a transistor layer including a plurality of light emitting elements; an encapsulation layer for covering the transistor layer; a touch electrode disposed on the encapsulation layer; and a protective layer disposed on the touch electrode, a transistor layer including a plurality of light emitting elements; an encapsulation layer for covering the transistor layer; a touch electrode disposed on the encapsulation layer; and a protective layer disposed on the touch electrode, wherein the protective layer includes a first area where a first protective layer having a first refractive index is disposed and a second area where a second protective layer having a second refractive index different from the first refractive index is disposed, wherein the second area is disposed to overlap with at least one of the plurality of light emitting elements in a first direction, wherein a first boundary that is an interface between the first protective layer and the second protective layer forms an inclination of a first angle with the first direction, and wherein the processor is configured to: control the display driver IC to drive the plurality of light emitting elements arranged in the first area and the second area when the display is in a normal mode for displaying the screen at a first viewing angle; and control the display driver IC to only drive the plurality of light emitting elements arranged in the second area when the display is in a privacy mode for displaying the screen at a second viewing angle narrower than the first viewing angle. control the display driver IC to drive the plurality of light emitting elements arranged in the first area and the second area when the display is in a normal mode for displaying the screen at a first viewing angle; and control the display driver IC to only drive the plurality of light emitting elements arranged in the second area when the display is in a privacy mode for displaying the screen at a second viewing angle narrower than the first viewing angle.