If you take a capture there's al album on the switch where you can export photos, which then requires you to scan a QR code on your phone to add them to your phone library.
On Switch 2 they removed that option and you have to use some sort of Nintendo app to transfer photos to your phone.