Use a solar filter. To take pictures during the eclipse, you need to cover your phone's lens with either a solar filter or your eclipse glasses. Regular sunglasses will NOT work. And only take the filter off if you're lucky enough to be in the path of totality, when the sun is completely covered.
Use a tripod to keep your phone stable. To minimize any small movements made by your hands.
Take pictures of stuff around you. If you don't have a solar filter, eclipse glasses, or a tripod, take pictures of the stuff going on around you during the eclipse . . . like pets, and other people looking up at the sky.
Practice this weekend. Practice by taking photos just after sunset to get an idea of what the light levels will be like during the eclipse.
Keep your expectations in check. Let's be real . . . cameras on phones were meant for selfies and other quick shots. So don't expect AMAZING eclipse photos from your smartphone.