Let's take Cmaj7 as an example to demonstrate this.
Cmaj7 has 4 notes,
C, E, G, B
Cmaj7 root position, would have the C note in the bass.
For example: C, E, G, B.
The order of the rest of the notes (all the notes except the bass note, C) doesn't really matter how you voice them, as long as you have the C note played as the bottom note.
If we'd play a Cmaj7 chord 1st in version, then the 3rd would be in the bass. 3rd meaning major 3rd of the chord, which is the note E.
For example: E, B, C, G. (as you can see, the 3rd (E) is now played as the bottom note. The rest of the notes, B, C and G can be voiced in any order that you like and that is physically manageable on the guitar. Some voicing that are really easy on piano might be really difficult on the guitar, because of how the instrument works/tuning etc.
If we were to play Cmaj7 in the 2nd inversion, that would be playing the 5th in the bass (meaning 5th of the chord - which is the note G).
For example: G, C, E, B.
And finally, the 3rd inversion is playing the 7th in the bass..
For example: B, E, G, C...
Like I mentioned above.. the order of the rest of the notes is all up to you. The main thing you need to learn is that
Root position means playing the chord with the root in the bass
1st inversion means that we play the 3rd in the bass
2nd inversion means that we play the 5th in the bass
3rd inversion means that we play the 7th in the bass.
Let me know if you have any further questions! I'm always happy to help!