One of the possible ways to improve the technical characteristics of QLEDs and OLEDs can be the use of the surface plasmon resonance that occurs in silver nanoparticles embedded in them. In the course of the experiments, it became clear that the frequency and intensity of the plasmon resonance strongly depend on the shape and size of the Ag nanoparticles that are used. Therefore, by adjusting these parameters of the plasmonic nanostructure and its internal structure it is possible to achieve significant progress in the formation of technical solutions for the creation of newest LEDs. For this, the thermal stability of the structure of small silver nanoclusters was studied by molecular dynamics in order to find the conditions for creating stable icosahedral structures. It was found that the use of Ag nanoclusters with a disordered initial structure in most cases led to the formation of the required five-particle symmetry in the operating temperature range of the LED, which is unattainable with currently available synthesis methods. The ideas proposed in the article can be used to create a more stable surface plasmon resonance effect in the next generation of OLEDs and QLEDs.