The device has an electrical array on at least one surface to deliver radiofrequency energy or other energy source to the targeted tissue in a manner so that the depth of ablation is controlled via parameters such as energy density, electrode pattern, power density, number of applications, and pressure exerted on the tissue.