The work investigates the volatility connectedness between oil price and clean energy firms over the period 2011–2020 (including the COVID-19 outbreak). Using the volatility spillover models, and dynamic conditional correlation, we are able to identify the volatility spillover effect between these financial markets and its implications for portfolio diversification. The results indicate a significant change in both static and dynamic volatility connectedness around the COVID-19 outbreak. For instance, total connectedness index changes from 21.36% (pre-COVID-19) to 61.23% (COVID-19). This finding shows the strong effect of the COVID-19 pandemic on these financial markets. Furthermore, we show how the WTI oil from the volatility transmitter (before the outbreak of the pandemic) becomes a risk receiver after the start of the global pandemic COVID-19. Our findings indicate that recent pandemic intensified volatility spillovers, supporting the financial contagion effects. Finally, we determine the optimal hedge ratios and portfolio weights. The estimates provided suggest the need for active portfolio management, taking into account the distinct characteristics of each sector and thus, the firm. For example, the optimal weight analysis shows how the clean sector has become important in optimal diversification strategies. Our results can be used for portfolio decisions and regulatory policymaking, particularly in the current context of high uncertainty.