If you have any issues here, we need to know more details, such as your operating system, the error you are getting and which building steps you have already done (and which one caused the error).
Edit: You should also consider building the source code for 25.09.2 (see GitHub - ankitects/anki at 25.09.2) instead of the main branch, as the main branch is basically the current dev version that will be released as beta in the future.
Thanks for your attention. I’ve solved my problem by creating a plugin using monkey patch technique.
If I have enough time, I will publish the plugin on the Anki Plugin platform, since I believe this plugin can be beneficial to others who have similar problem.
From my perspective, combining plugin with Anki monkey patch is enough for me.