If the imaging apparatus determines that the phase difference has failed to be detected, the imaging apparatus sets a second readout area having a range wider than that of the first readout area as a readout area, and then sets an area other than an area which is included in the first readout area from the second readout area and is used for generating a display image as a trimming target.05-08-20