Hi Stuart,
When you consider the strings in isolation, then yes, fret 2 will be a M2 for all individual strings. This is because the intervals number relate to the each root note. The root note on an open string 5 is an A, on string 4 it’s a D and so on for the remaining strings.
In each case fret 2 will be a M2 in relation to the open note. For string 5 the M2 of an A root is a B.
For string 4 the M2 of a D root is an E.
However we seldom play a whole scale along one string, we play across the fretboard moving from one string to the next.
In standard tuning (EADGBE) the strings E-A, A-D D-G and B-E are tuned a P4 away from each other on the chromatic (12 note) scale. Strings G-B are a M3 apart.
You can see this by counting the intervals eg
E to A
E F F# G G# A is a total distance of 5 frets or a P4.
G to B
G G# A A# B is a distance of 4 frets or a M3.
Things get really interesting when you move in the opposite direction for example let’s now count from A back to E.
A to E
A A# B C C# D D# E is a distance of 7 frets or a P5.
B to G
B C C# D D# E F F# G is a distance of 9 frets or a m6.
These coincide with the dots on the neck of the guitar at frets 3, 5, 7, 9 and 12 (the octave).
What makes this incredibly useful is that on any string that is a P4 away from its neighbour, you can pick any note as the root (P1) and it’s P5 will be on the same fret one string above and it’s P4 one string below.
Now apply this to the G note on string 6 fret 3. It’s our P1.
String 5 is a Perfect 4 distance from string 6 so the interval immediately below string 6 fret 3 is a P4 (string 5 fret 3). The M3 is next to the P4 on string 5 fret 2.
Think of the E chord fingering. It’s a 5-1-3. The P1 is string 4 fret 2 (E), the P5 is directly above on string 5 fret 2 (B) and the M3 is on string 3 fret 1 (G#).
The B string being only a M3 from G accounts for the M3 being directly below the P1 (instead of the P4). A difference of 1 fret. Think of the A chord fingering. The 5-1-3 are all on the same fret because the P1 is on string 2 (the B string).
Intervals are always measured in relation to the root note.
The take away from all this is if you pick a note as the root (P1) anywhere on strings 6,5,4,3 and 1 there will be a P5 above and a P4 below on the same fret. From those you can find the other intervals.