PAX8 is detected in histological samples using immunohistochemistry (IHC). This technique involves the use of specific antibodies that bind to the PAX8 protein in tissue sections. The bound antibodies are then visualized using chromogenic detection methods, such as DAB (diaminobenzidine), which produces a brown-colored precipitate at the site of antibody binding. This allows pathologists to observe and evaluate the presence and distribution of PAX8 in tissue samples under a microscope.