Changing line color in different values

Hey all, I want to change the line color to green where the values are greater than 0 and red where they are less than 0. Simply put, green if the line is above the x axis and red if the line is below x axis.
Could you please help how can I achieve this with plotly exppress only. If no solution, I would be okay for graph objects as well. This is what I could achieve so far.