I'd prefer an implementation similar to Signal's Screen Lock: https://support.signal.org/hc/en-us/articles/360007059572-Screen-Lock
Android has Private Space, but it's not really suitable for this use case. I'm not sure about iOS, but a built-in solution like Signal's would be ideal
Thread
Comment by Jiralite
Comment by Techniix
Comment by Flit