An electronic device comprising: a touch screen display (702, 703) 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 (510, 1010) of the touch screen display having a ratio substantially equal to the second aspect ratio and display at least one function button (522, 1022) and a fingerprint input button (524, 1024), which are not a part of the application, in a second area (520, 1020) of the touch screen display that does not overlap the first area (510, 1010); 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 (522, 1022) and the fingerprint input button (524, 1024), 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 (520, 1020) is too narrow to display the home button and the fingerprint input button separately, integrate (542, 1024) the home button into the fingerprint input button, and wherein, when the second area (520, 1020) is not too narrow to display the home button and the fingerprint input button separately, display the home button (522, 1022) and the fingerprint input button (524, 1024) separately. a touch screen display (702, 703) 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 (510, 1010) of the touch screen display having a ratio substantially equal to the second aspect ratio and display at least one function button (522, 1022) and a fingerprint input button (524, 1024), which are not a part of the application, in a second area (520, 1020) of the touch screen display that does not overlap the first area (510, 1010); 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 (522, 1022) and the fingerprint input button (524, 1024), 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 (520, 1020) is too narrow to display the home button and the fingerprint input button separately, integrate (542, 1024) the home button into the fingerprint input button, and wherein, when the second area (520, 1020) is not too narrow to display the home button and the fingerprint input button separately, display the home button (522, 1022) and the fingerprint input button (524, 1024) separately.