HEAg can be detected using immunohistochemistry (IHC). This technique involves the use of antibodies specific to the HEAg to stain tissue sections, allowing for visualization under a microscope. Detection of HEAg in liver tissue is crucial for diagnosing an active HEV infection and understanding the extent of liver damage.