Please guide about Profit

As per your blog post, ( Can I wait before selling a losing stock that turned non permissible )
If a halal share (e.g, 100$/Share) turned to be not-hahal, we need to sell stocks as soon as possible and it would be haram for me to get profit on that stock’s price during next 3 month time (e.g., 200 $/share)
But, I saw a blog post from another Muslim experts and as per their opinion, I can keep this stock for 3 months and and no need for purification on that stock’s price. The blog post link: https://blog.islamicly.com/Guidance/rules-of-shariah-compliant-equity-trading

Kindly guide and give your view on that, as it is very confusing.
Kind Regards,