Will it ...
A attach to the pi 5?
B work?
Djb
This Official R Pi documentation might help you with connections and configuration.
R Pi 5:MIPI CSI/DSI connectors
https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html#mipi-csidsi-connectors
R Pi 5: Attaching a display
https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html#attaching-a-display
This Official R Pi documentation might help you with connections and configuration.
R Pi 5:MIPI CSI/DSI connectors
https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html#mipi-csidsi-connectors
R Pi 5: Attaching a display
https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html#attaching-a-display