This recipe is calculated specifically for a 9 x 13-inch pan. You will need to calculate the relationship between the volume of the 9 x 13-inch pan to whatever your preferred pan size is. I’m guessing you’re thinking of using either an 8 or 9-inch pan. This recipe would not fit into any of those.  In addition, you will also need to adjust the baking time. Bake it for too long and you’ll end up with dry edges, a burnt top, and maybe even an underbaked center.