An electronic device comprising: a touch screen display having a first aspect ratio; a wireless communication circuit ; at least one processor electrically connected to the display and the wireless communication circuit; and a memory electrically connected to the processor, wherein the memory is configured to store at least one application and further store instructions, which when executed, cause the processor to: acquire a second aspect ratio of a user interface of the application; compare the second aspect ratio with the first aspect ratio; when the second aspect ratio is smaller than the first aspect ratio, display the user interface in a first area of the touch screen display having a ratio substantially equal to the second aspect ratio and display at least one function button and a fingerprint input button , which are not a part of the application, in a second area of the touch screen display that does not overlap the first area ; and when the second aspect ratio is substantially equal to the first aspect ratio, display the user interface over substantially an entire area of the touch screen display and display the at least one function button and the fingerprint input button , which are not a part of the application, on the touch screen display such that the at least one function button and the fingerprint input button at least temporarily overlap the user interface, wherein the at least one function button includes a home button, wherein, when the second area is too narrow to display the home button and the fingerprint input button separately, integrate the home button into the fingerprint input button, and wherein, when the second area is not too narrow to display the home button and the fingerprint input button separately, display the home button and the fingerprint input button separately. a touch screen display having a first aspect ratio; a wireless communication circuit ; at least one processor electrically connected to the display and the wireless communication circuit; and a memory electrically connected to the processor, wherein the memory is configured to store at least one application and further store instructions, which when executed, cause the processor to: acquire a second aspect ratio of a user interface of the application; compare the second aspect ratio with the first aspect ratio; when the second aspect ratio is smaller than the first aspect ratio, display the user interface in a first area of the touch screen display having a ratio substantially equal to the second aspect ratio and display at least one function button and a fingerprint input button , which are not a part of the application, in a second area of the touch screen display that does not overlap the first area ; and acquire a second aspect ratio of a user interface of the application; compare the second aspect ratio with the first aspect ratio; when the second aspect ratio is smaller than the first aspect ratio, display when the second aspect ratio is substantially equal to the first aspect ratio, display the user interface over substantially an entire area of the touch screen display and display the at least one function button and the fingerprint input button , which are not a part of the application, on the touch screen display such that the at least one function button and the fingerprint input button at least temporarily overlap the user interface, wherein the at least one function button includes a home button, wherein, when the second area is too narrow to display the home button and the fingerprint input button separately, integrate the home button into the fingerprint input button, and wherein, when the second area is not too narrow to display the home button and the fingerprint input button separately, display the home button and the fingerprint input button separately. <EOS>