Both phones have capable editors built in, and for a single quick fix they are the obvious place to start.
iPhone and iPad (Photos app)
Open the photo, tap Edit, then the adjustment dial. Tap the magic-wand Auto button for a quick fix, or scroll through the sliders: Exposure and Brilliance brighten the picture overall, Shadows opens up the dark areas, and Highlights pulls bright ones back. Tap Done to save; you can revert later because the Photos app keeps the original.
Android (Google Photos)
Open the photo in Google Photos, tap Edit, then the adjust tools. Brightness and Shadows do most of the work, with Highlights and White point for the bright end. Samsung Gallery has a similar Adjust panel with brightness, exposure and shadow controls. Tap Save or Save as copy.
When the browser tool is the better choice
Use the tool on this page when you want the same result on any device, a before-and-after split to judge it, a histogram to see what is clipping, or a copy without location data to send to someone. It also opens photos sent to you as files, screenshots and pictures from a camera’s memory card, and saves them at full size as JPEG or PNG.