In many cases, users might not want to remove all the transparency effects, but only a few of them. This is possible too. Removing transparency is a subset of Performance options. So, you could access further customization as follows:
Search for "performance" in the Windows search bar and select Adjust the appearance and performance of Windows.
Here you would find options to enable and disable transparency for specific components.