Part of this extreme reckless tariff push is definitely protectionism for the fossil fuel industry.
https://www.utilitydive.com/news/ustr-biden-tariff-increase-...
And they should be set just high enough that the industry remains competitive while not allowing for price gouging. We know companies will seek to maximize their prices. So if a foreign competitor is selling for 8% cheaper, then tariffs should be no more than 9%. We know from experience that manufactures will sell at the same price as foreign competition and will pocket the difference.
They should also be gradually reduced over time. The goal is to have domestic industries become globally competitive. And that necessarily means that companies need to strive to improve efficiency so they can match or beat the prices of global competitors. If that can't happen, then maybe those companies need to go away.
The reason tariffs are bad in the long term is A) it incentivize global competition to become even more efficient; B) it encourages domestic industries to be non-competitive. So the industry being favored by tariffs will never grow into a global power.
So tariffs on solar panels are fine, so long as they come with other incentives to spur domestic consumption (to drive efficiency gains) and a plan to lower those tariffs over time.
Blanket tariffs are pretty much never good, the only good reason to institute blanket tariffs on a country is as a prelude to direct conflict. As it will provide a market incentive for consumers to replace goods from that country with a more expensive alternative.
After all, a blanket tariff on all the goods coming from a country is a type of economic sanction. So a country who puts tariffs on the goods of every other country in the world is effectively feeling the impact of the first phase of conflict, when allies come together and enact trade barriers with a country. And why to countries band together to push economic sanctions on an adversary? To hurt their economy.
So TL;DR: Biden solar tariffs - well thought out and likely productive. Trump tariffs - pushing yourself in the face.