Purchase it from a vendor. These are standardized diets that people in the field use. A homemade diet is going to be difficult to publish. Regardless of the results, reviewers will question how comparable it is to the prior literature.
Sure, to create high-fat diet mice or rat in the lab, you don't have to buy them from a vendor. However, you need to ensure the composition of the high-fat diet provided. For example, a standard chow diet (Control; 10% energy from lipids of soybean oil, 76% from carbohydrate, and 14% from protein; 3.8 kcal/g; n = 40), and a high-fat diet (HF; 55% energy from lipids of pork lard and soybean oil, 31% from carbohydrate, and 14% from protein; 5.2 kcal/g; n = 40)." I cite this composition from de Bem GF, Costa CA, Santos IB, Cristino Cordeiro VdS, de Carvalho LCRM, de Souza MAV, et al. (2018) Antidiabetic effect of Euterpe oleracea Mart. (açaí) extract and exercise training on high-fat diet and streptozotocin-induced diabetic rats: A positive interaction. PLoS ONE 13(6): e0199207. https://doi.org/10.1371/journal.pone.0199207.