Diagnosis of pyloric stenosis is typically clinical, often confirmed by imaging techniques such as ultrasound. However, histological examination can provide definitive evidence of the condition. A biopsy of the pyloric region can be taken and examined under a microscope. The key histological markers include the aforementioned hypertrophy and hyperplasia of the smooth muscle layer.