A mobile X-ray apparatus for medical examination includes an apparatus for producing X-ray images having a digital Radiography detector positioned at a first spatial position, an X-ray tube assembly positionable at a second spatial position relative to the first spatial position, sensor(s) for providing the first spatial position and/or the second spatial position, a control unit for receiving the first and/or the second spatial position(s) from the at least one sensor and for controlling the first or second spatial position for alignment of the X-ray tube assembly with the detector based on the first and second spatial positions, a drive wheel, a base, optionally an elevating column, and a telescopic arm which is rotatable into a direction perpendicular to a driving direction of the base. The apparatus is controllable to drive along a patient table and/or the X-ray tube assembly is height adjustable in front of a wall stand, for alignment.