Optical microcavities are known for their strongly enhanced light–matter interactions. Whispering gallery mode (WGM) microresonators have important applications in nonlinear optics, single-mode output, and biosensing. However, there are few studies on resonance modes in the ultraviolet spectrum because most materials with high absorption properties are in the ultraviolet band. In this study, the performance of a microdisk cavity based on boron nitride (BN) was simulated by using the Finite-difference time-domain (FDTD) method. The WGM characteristics of a single BN microdisk with different sizes were obtained, wherein the resonance modes could be regulated from 270 nm to 350 nm; additionally, a single-mode at 301.5 nm is achieved by cascading multiple BN microdisk cavities. Moreover, we found that a BN microdisk with a diameter of 2 μm has a position-independent precise sensitivity for the nanoparticle of 140 nm. This study provides new ideas for optical microcavities to achieve single-mode management and novel coronavirus size screening, such as SARS-CoV-2, in the ultraviolet region.