You only need the mobile version to be able to obtain the gift, and as mystery gifts are available regardless if you've paid for the Premium version or not, as long as you have the app, you will be able to obtain the shiny Zeraora. However, if you would like to transfer it to Sword or Shield, you will need the Nintendo Switch application as well, as the mobile app has no way of connecting with your Switch.
Source
Hope this helped!