Of course, since your puny little solar installation is incapable of powering a substantial portion of the grid this usually only really becomes a problem when the section that is islanded is small enough.
Some electrical codes allow you to resume powering your own circuit if you physically lock-out your connection during such an outage, and re-configure your inverter to non-grid connected mode.
You will also require a battery in such a case since the stabilizing properties of the grid (it's a very large load and acts as a huge flywheel or capacitor with basically endless capacity from the point of view of your installation).
And of course when the grid outage has been dealt with and you wish to feed power back into the grid again (or consume when the sun is down) you're going to have to undo all of this.
When I built a solar / wind power installation in Canada I decided that the net metering laws and price of power produced by renewables was so low that I scrapped the whole grid connectivity portion and invested the surplus into a much larger battery.
It felt pretty good to have power when the island was down which happened many times every year.