Hi,
Best way to do this is using a parent to rotate y and child to rotate x
Child can be the object directly or also an empty object holding the object
I prefer to use 2 empty objects as it is easy to change the object or to base position/rotation
Check the image for this setup.
Let me know if you got it to work, else i can make a video on how to.
btw you should get obs studio to record your screen, its free and very good