That close together, two planets would not survive each other’s tidal forces (the Roche limit). It’s a common oversight by artists. But I’ll just assume someone is using a telephoto lens instead.
I was thinking about making it a domed scene as if it were a habitat on a large orbiting space station.
It's a common oversight by laymen to forget that the Roche Limit applies only to satellites which are held together only by their own gravity - i.e., which are not held together by forces other than gravity and which are thus essentially fluid.
Jupiter's Metis and Saturn's Pan are within the Roche Limit, as are countless artificial satellites in Earth orbit.
Their tensile strength allows them to resist disintegration.
Regards,