This has to do with gimbal angle limitations, the gimbal can manually be move between +20 (up) & -90 degrees (down) & mechanically between +35 (up) & -110 degrees (down) . In below cut out chart from your flight is one example of where the gimbal moves and stays in a new position without manual input ,
-the gimbal position starts with full down angle, -90 degrees (Purple)
-you go from 0 elevator to full forward in sport mode (Blue)
-in response to that the AC pitch forward/down near to those maximum 30 degrees that the Mini can do in Sport mode (Green)
-as the AC pitch forward the gimbal have room to move in positive direction, relative the AC, as it is at -90 degrees & still can continue pointing straight down
-directly after full positive elevator input you go full negative input (Blue)
- the AC then starts to pitch backwards with the maximum 30 degrees that the Mini can do in Sport mode (Green)
-here the gimbal doesn't have room to move enough in negative direction to maintain view straight down, the gimbal hits the end controllable position
-by hitting the negative end position the gimbal turns with the backwards pitching AC in a positive direction (purple just when it jumps up to negative 68 degrees instead of negative 90.
-this new gimbal pitch angle of negative 68 degrees will then not recover to negative 90 even though the AC pitch angle gets smaller ... and as a consequence to that you in the end of the chart apply full negative RC gimbal in order to correct the gimbal down to negative 90 again
All this is from 2 reasons ... first DJI's coding that not recover the gimbal angle if forced into the end controllable range, secondly that you operate the AC to wildly with full stick inputs & being in Sports mode. Go for P or C mode instead & be gentle with the sticks, in this way you don't force the AC to use the extreme pitch angles that will nudge the gimbal.
This behavior can't be corrected by doing a gimbal calibration as suggested earlier ...
View attachment 91734