Axis deviation is diagnosed through an Electrocardiogram (ECG). The ECG provides a graphical representation of the electrical activity of the heart, allowing clinicians to determine the heart's electrical axis. In neonates, specific criteria are used to interpret these results, considering their unique physiological characteristics.