Full frame sensors have thin depth of field. Small sensors like an iPhone don't have that, so they fake it with portrait mode.
But when you do macro photography, having thin DoF becomes a drawback, so with big DSLRs you have to do focus stacking (which is unnecessary on an iphone).