Replacing a dryer belt

The old belt broke and we’ve just ordered a new one, but we don’t know how to open the dryer to order to replace the belt. Does the top of the dryer open, or does one need to take the back off. Either way, how do we do it?