I bought a digital piano for DD to practise on. She's having lessons, but I've been learning from an app.
I got cables to connect the piano to a tablet, apps can use the midi data sent via cable to monitor your playing. If you have a non-digital piano or no cable, the apps can still work by using the microphone to listen to you play, but it's not as perfect.
Yamaha piano came with three month free trial of Flowkey app. Prior to that I had used Joytune's "Simply Piano" which DW had signed up to for a year. Flowkey is rated higher in reviews, but I remember Simply Piano being more polished.
(Flowkey has a frustrating feature in their courses where they dictate exactly how many times you practise a piece, usually far to few, and then you have to press several times to get back into the lesson to do another set. I messaged them about this and they've promised a fix. In some cases you can find the same music in the library and practise it outside of the lesson, bypassing the problem.)
Another well know apps is "Yousician", but I haven't used it.
In the long term, I might end up using "Synthesia", which is the only app that lets you import your own music (in the form of midi files) rather than learning stuff from a built-in library. (Synthesia is the standard for Youtube tutorials on playing various pieces of music, but I wouldn't use it's "falling note" display, I'd turn that off because I want to learn/practise reading conventional music.)