Can I use my old phone as a rear camera on my wheelchair?

I’m working on some simple applications with Niotron. I have an old Samsung M20 phone. I’m going to mount this phone on the back of my wheelchair. I want to create an application for my other new phone. With this application, I want to activate the camera on my old Samsung M20 mounted on the back of my wheelchair and transmit the camera image to my other new phone in front. In other words, can I use it as a rearview camera? Could you help me with which components I need to do this?