If you're going to stay in the city centre of Oslo, the best travel option from Gardermoen is the Airport train (Flytoget). You can buy a ticket in advance on your phone.
If you're to stay a bit outside the city centre of Oslo, the best travel option from Gardermoen is sometimes the Airport bus (Flybussen). You can buy a ticket in advance on your phone.