Is it possible for a player to get a ability score of 30?

In the Player’s Handbook it says in the ability score improvement you can’t go above 20. I know there is magical items that can make a certain score go 21.

Also some monsters ability scores are at 30. But how do you yourself get an ability score of 30?