You are using the old “contemporary invoice template” (ironically) which is due to be phased out in the coming months. This template has almost zero customisability. To show/hide the VAT number you will need to switch to the standard template, you will then have around 10 new templates you can choose from. You can switch in Sales >> Invoice Customisation.

To read more about the new invoice design tools take a look here: