My experience from 2007 thru 2021 is that a solar panel with a protective inverter device that shuts off at 13.8vdc can charge "dead" batteries, when a typical modern 120vac battery charger cannot do it. It is because modern 120v battery chargers use an auto-shutoff feature to just "give up" when the voltage fails to rise as quickly as the charger's electronics require. A solar panel with even a China made $20. protective Amazon.com charger will NOT give up, it will keep attempting to charge, until the target voltage is reached. When the battery comes down to a low voltage, the inverter will kick back on, and the cycle repeats. You can often use a solar inverter to output 12 or 24 volts when you set it up, useful for some heavy equipment like my 43k lb. Case excavator
I have had several instances where battery chargers faulted to the red indicator LED which is very frustrating. But not a problem with solar panel efforts. In my case I was using 216 watt Sharp panels, which can put out as much as 28 volts. The China inexpensive inverter will not feed the dead battery the 28vdc, only 13.8 to 14.1 (in my experience). I am not stating that you need as powerful a solar panel as mine, lessor wattage outputs will work too. I have only charged lead-acid batteries, as I have no Lithium or AGM type. China charging inverters from my experience are DOA, about 1 out of 10 is just non-funtionable.