As one of the key parts of display devices, the selection of luminescent materials is crucial to promote the development of display technology. Fully inorganic perovskite quantum dots (QDs) are ideal light-emitting materials for next-generation display devices. However, quantum dots based on CsPbX3 (X=chlorine, bromine, iodine) have poor stability and are vulnerable to external environmental erosion (such as oxygen, water) decomposition, damaging optical properties. In this work, we used mesoporous silica to protect perovskite by growing CsPbBrxI3-x in situ in mesoporous silica. Compared with the red perovskite quantum dots synthesized by traditional methods, the stability was improved, More than 96% of the PL intensity was maintained after 30 days of storage under environmental conditions. There was no significant change after continuous heating at 100°C for 60 min, and more than 80% of the PL intensity was maintained after 5W blue light irradiation for 48 h at 365 nm excitation wavelength.