A handheld electronic device having a bactericidal mechanism is provided. The handheld electronic device includes a main body, a display panel and a processing module. The display panel is disposed at a first surface of the main body and includes a plurality of display light sources and at least one bactericidal light source. The display light sources generate a display light. The bactericidal light source generates a bactericidal light. The processing module is coupled to the display light sources and the bactericidal light source. The processing module is operated to activate the display light sources to generate the display light during a display period and to activate the bactericidal light source to generate the bactericidal light source during a bactericidal period.一種手持式電子裝置,包含:本體、顯示面板以及處理模組。顯示面板對應設置於本體之第一表面上,並包含複數顯示光源以及至少一殺菌光源,其中顯示光源配置以產生顯示光,殺菌光源配置以產生殺菌光。處理模組耦接於顯示光源以及殺菌光源,配置以在運作於顯示週期時啟動顯示光源產生顯示光,並在運作於殺菌週期時啟動殺菌光源產生殺菌光對第一表面進行殺菌。