Mercury and Venus are inferior planets. Their orbits are closer to the Sun than Earth. We can see these planets if they are above the horizon, and it will be easier if the Sun is below the horizon. Generally, both planets can be seen early or late in the night.
Flat-Earthers claim we should not be able to see Mercury and Venus as they are closer to the sun, and at night we are facing away from the sun. In reality, early and late in the night, we can look toward the general direction of the Sun & observe both planets.
Venus is the third brightest object in the sky after the Sun and Moon. Sometimes, it can be easily observed even at the same time the Sun is visible.
The greatest elongation of Mercury from the Sun is 28°, and thus, near the Equator, Mercury can only be observed 112 minutes after sunset or before sunrise. For Venus, its greatest elongation is 47°, making it visible at most about 3 hours after sunset or before sunrise near the Equator. If Mercury or Venus is visible after sunset, then in general, it will not be visible before sunrise, and vice versa.