The short answer is that you need to treat the metal casing as an RF sink. It will absorb and reflect energy unless there is a large enough air gap or the casing is designed to be a parasitic element. When working with 4G in a tiny space, the rules for clearance are less about a fixed number of millimeters and more about ensuring the antenna has a clear path to the outside in the primary operational frequencies. You really want to avoid having any conductive material directly parallel to the antenna trace or the radiation path.
For a compact PCB like yours, the general rule of thumb is to keep the antenna trace at least two body heights away from any continuous piece of metal enclosure. If the PCB is mounted directly to the metal chassis, you need to consider using a stand-off or placing the trace path at a point where the metal is interrupted, like near a seam or corner. The specific height depends heavily on the type of antenna you are using—are you using a dipol trace, a microstrip, or a chip antenna? They all have very different requirements for ground plane separation.
If you are running a simple PCB trace antenna, you're essentially building a piece of wire that needs space to radiate. A metal shell turns that space into a short circuit or a reflector, which usually kills the signal strength faster than you can measure. Start by physically modeling the air gap. Try placing the PCB in the enclosure with dummy components and see how much of the trace path is actually exposed to open air versus shielded by the housing. If the trace is mostly trapped inside the metal box, you need to raise the board.
If you are designing the PCB, ensure the ground plane isn't restricted by internal components or the edge of the PCB itself, as that will compromise the entire antenna design, regardless of the casing clearances.