Place the chicken in the oven so legs are facing toward the back (this is the hottest part of the oven and will help the legs cook before the breast dries out) and roast until some anchovy mayo and fat begin to drip onto shallots, about 15 minutes.
Remove from oven and, using tongs, turn shallots to coat in drippings.
Return skillet to oven and continue to roast chicken, stirring shallots once or twice, until golden brown and an instant-read thermometer inserted into the thickest part of breast registers 155°, 45–55 minutes. If skin starts to get too dark on the top before the chicken is done, tent the area with foil, leaving the rest of the bird exposed. If using chicken legs, start checking at 40 minutes (a thermometer inserted right at the joint should register 160°).
Transfer the chicken and shallots to a cutting board, leaving behind any juices and fat in the skillet.
If shallots need more time to soften and darken, roast a bit longer without chicken before proceeding. Reserve skillet.