If you want to visit the shrine, you should stay at a Miyajima Japanese-style hotel or inn.
To take in the sight of the great shrine against the glorious setting sun, spend the night at one of Miyajima's many Japanese-style hotels and inns, preferably a family-run ryokan or pension .After dinner, don your cotton yukata robe and pad out the short distance back to the Itsukushima Shrine.