The upstream O2 sensor is what controls the air/fuel mixture once the engine warms up.
Replace the upstream O2 sensor if the code indicates that’s where the problem lies.
Also, have the lamp for the Check Engine light in the instrument cluster replaced so you know when there’s a problem with the engine operation.
Tester