Truvativ 1x front chainguide - what's wrong with this? I've been asked to inspect and fix someone's bike.  Its a heavy full-suspension Kona "Stab Deluxe" downhill monster from 2006.

The main fault is that the chain gets stuck between the front chainring and the chainguide.

It is a single 36 tooth chainring branded as Saint, with Hussefelt cranks and a 4 bolt Truvativ crank.  Not sure what the BB is other than external.  Seems to be stock/original components.

There's also a trailing lifter wheel vaguely like a jockey wheel but without teeth, so seems to be a tensioner but has no tension, perhaps best described as a keeper?

 Normal position

 Rotated forward by hand.

 Outline showing support system in the back.

My gut feeling is that the whole mounting bracket should not rotate like this.  From below I can see threads of the external cup (?) housing between the BB case and the chain keeper's support plate.  

There is a lot of scoring and worn-off plastic inside the chain guide itself, suggests this has been loose or wrong for a long time.

Question What's wrong with this setup?  And how do I fix it?
Looks like the chainguard is of the type that mounts with a number of bolts that screw into the frame. You can see the slots in the mounting plate the screws go through to allow setting the chainguard angle. Presumably those bolts just need tightening?

I'd pull the crank and guard off and clean everything up as there may be dirt behind the guard plate. Looks like you will be doing this anyway if the BB is toast.

GMBN has a video on fitting this type of chainguard: