This would all be dependent upon make & model of the tablet.
However, if you've determined that this is indeed a hardware issue & not a software/settings issue, more than likely the repair is going to be more costly that what the tablet is worth.
A repair facility in your area may provide a free quote (computer repair shop).