In situ TEM involves placing a sample in the electron microscope and subjecting it to various external conditions. For example, to study thermal stability, a sample can be heated while being imaged. The electron beam interacts with the sample, and the resulting images reveal changes in structure and composition. These real-time observations provide insights into material behavior at the atomic level.