Certainly the nonce is basically just a random number that miners use to get the resulting hash below a certain threshold. Since hash is just a number like any other (just really large) and you want this number to be below this threshold you need to try multiple times until you get the right number.
You learned that a small change in input data drastically changes the output hash and we don’t want to change the important block data, a nonce is used instead. If the resulting hash is not below the threshold, the nonce is changed and tried again.
This process gets repeated until the desired output is achieved (this is what we call Proof of Work)