You can do this with a square or circular patch fed in-phase or out-of phase at two points 90 degrees apart on the patch. The polarization can be changed by varying the power ratio to the two feeds.
If the diagonal of the patch is vertical, then 45 deg will be one feed, -45 deg the other feed, and slant angles from other combinations.
The polarization angle from one of the feeds is the arc tangent of the square root of the ratio of the powers to the two feeds.
You can download the paper entitled "A Multimode Wideband +-45 degree Dual-Polarized antenna with embedded loops" doi: 10.1109/LAWP.2016.2594240 and study it, will definitely help you to achieve your goal.