As the coronavirus situation means all piano lessons will be online for the foreseeable future, you are likely going to need a way of positioning your phone or tablet if that is how you will be joining lessons.
It is obviously not possible to hold your phone or tablet if you are playing your piano.
I have done a little research of what is available on Amazon and UGREEN seem to have something suitable that will work with most sized devices. If that is out of stock, there are a couple of alternatives with a similar design as well.
They are all articulating arms that will allow you to position the camera on your device so I can see your hands when playing.
If you are going to attach it to your piano, take care not to over-tighten it so you don’t damage your piano.