Looking at the eclipse on your phone isn't as dangerous as viewing the sun directly, though your camera lens can be damaged by the eclipse. After all, it's a lens, just like your eyes. Regardless, to protect your camera and your phone, use a filter or grab a second pair of eclipse glasses to put over your lens. Accordingly, NASA has a free guide to help you learn the art of astrophotography.