By standard methods, you cannot raise an ability score over 20. Even ASIs do not allow you to increase a stat above these limits. This means if your Wizard has 20 intelligence, they’ll have to use their ASIs on something else.
It is possible, however, to have ability scores over 20, by the use of magic items such as a Belt of Giant Strength or some class features like Barbarian’s Primal Champion.