Dye-sensitised solar cells (DSSCs) and perovskite solar cells (PSCs) have brought new impetus to the photovoltaic research field due to their artistry such as colour and flexibility, and stable performance under low-intensity light. These solar cells adopt a common architecture of <electron transport layer / light absorber layer / electrolyte or hole transport layer>, however show distinct features owing to the different light absorber materials, i.e. a donor-acceptor type dye for the DSSC and a metal-halide perovskite for the PSC. One of the remaining challenges for the DSSC and PSC is their long-term stability. Leakage of the volatile electrolyte especially in DSSCs has pushed the field towards developing solid-state hol...