Run this suggestion past your vet -
My Keeper has liver problems. Shortly after Marvin died, he became disorientated and refused to eat. My vet (new, senior partner in the Practice) scanned him, did blood works and wanted him hospitalised on a drip for days and a biopsy performed. Otherwise he would die.
I refused and in floods of tears, went to the outgoing senior Vet, a lovely old fashioned hands-on Vet, who looked at the scans and suggested a milk thistle preparation (obtainable on line).
She also spotted a a piece of possibly atrophied bile blocking his gall-bladder and we agreed better a happy dog for a month than a sick one for 6 and if subjected to days in hospital, he would have died - of boredom. . .
She prescribed Destolit 150 mg to disperse the bile and Denamarin Hepatic Nutritional Liver Support to be given one hour before food. He takes the Denamarin in the mornings in low fat super-market pate (!) and the Destolit wrapped in his meal in the evenings. He didn't look or behave like a very sick dog. After a couple of days he was eating voraciously, eager for treats and agile and fleet of foot in the woods.
Within a relatively short space of time, his blood works were back within a much more normal range and they have continued to improve.
That was 22 months ago. Keeper is 2 months short of 13 years of age now. He is still taking both medical preparations and nobody we meet in the woods will believe he is an old man !
Don't do anything without consulting a vet but before any biopsy, maybe a scan would show up something ?
Good luck