Speedometer intermiitent fault

I have 2 Ford Mondeo breaks, 1997. Each has the same intermittent problem: the speedo stops working, normally after going over a bump.
Bang the dash and it works again. Anyone know how to fix this (easily)? Loose contact, obviously? Many thanks, Andrew
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file

Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.