Colleagues, users of Lemmy, please do not downvote this poster. Most solar power installations in use today are grid-following, so it's correct to point out: if the grid drops, most solar inverters stop. Your average Huawei is not capable of operating in island mode. It needs a reference frequency to follow.
On most days, this is not a problem. The operator of the electrical grid will do everything to keep it up.
However, it's a real risk if your electrical grid should get bombed, or pelted with ice rain.
Myself I have a different kind of a solar power system, and it's not commonplace. It's easy and doable, there is plenty of instruction available, but it's less profitable.
panels -> DC -> charging controllers -> DC -> interrupter -> battery bank -> balancers and fuses -> still DC --> local consumers, among them an inverter --> finally some AC --> possibly the grid
To get a safe system, ask a specialist or learn about balancers, interrupters and fuses. Everything is DIY-able with a willingness to learn. Avoid dangerously high voltage if you aren't certified to work with electrical power.