That is God’s recipe for replacing worried thoughts with good thoughts. The thought is a temptation, and God has given us the ability to decide whether we are going to take that thought and form it into worry and fear, or if we are going to reject that thought and think about what is true, what is honest, what is just, what is pure, etc. Whenever you catch that temptation to worry coming to your mind, reject that thought, lock it up, don’t imagine more details of it, don’t scare your body into a fear reaction. Instead, identify something that is true, honest, just, pure, lovely, or well spoken of.
Whether it is the virus, politics, or something else, the temptation to worry is always present. If we can no longer function effectively because we are imagining all kinds of terrible things happening, then we need to take the advice of our heavenly Father. If your thinking is causing you to feel hopelessness and despair, who do you suppose is encouraging those thoughts? Not God. God is the God of hope (Romans 15:13).