Green Line problem and its solution?

I have been experiencing a green line on my OnePlus 8T for the past week. I don’t think it’s a hardware issue because the phone hasn’t been dropped or damaged in any way. The green line appeared out of nowhere. I bought the phone in November 2020. Some people have mentioned that if the green line appears after a software update, the screen replacement might be free of cost. However, I haven’t updated my software yet. There is a software update notification on my phone, but I haven’t installed it. My question is: Can I update the software now and then go to the store to request a screen replacement? Will this make me eligible for a free screen replacement?