Typically a Caddy bar hanger with an octagon box . The clip on type, or the two piece one and tek screws, flex, or mc, and have also piped in with emt.
And depending upon how small the space was closest to the wall, move it out to next tile, or if there is wall space above the door, and was not roughed in, a cut in box.