A liver biopsy can also be done to diagnose cirrhosis. During this procedure, a healthcare provider uses a needle to take a small piece of liver tissue. The sample is then viewed with a microscope to look for scar tissue.