3 steps
I will use letters to indicate the marbles..A,B,C,D,E,F,G,H,I,J,K,L...Don't want to use 2 digits for the 11th and 12th marble

Make 2-4 marbles sets, then put the 2 sets(Let's say ABCD and EFGH) to the balancing scale(1st step)
Possible cases from 1st step:
-They are equal:
If they are equal, pick one of the 8 marbles used in 1st step, Lets say marble A(any would do..).
Then make 2 sets again, (Let's say AI and JK)
Possible cases from 2nd step
#They are equal:
Put A and L to the balancing scale.
If L is heavier, it is the heavier marble.
If L is lighter, it is the lighter marble.
#AI is heavier:
Put J and K to the balancing scale.
If equal, I is the heavier marble.
If J is lighter, J is the lighter marble.
If K is lighter, K is the lighter marble.
#JK is heavier:
Put J and K to the balancing scale.(just the same...)
If equal, I is the lighter marble.
If J is heavier, J is the heavier marble.
If
LK is heavier,
LK is the heavier marble.
-Not equal, ABCD is heavier:
Select 2 marbles from ABCD and 1 marble from EFGH making the 1st set(Let's say ABE)
Select another 1 marble from ABCD and another 1 marble from EFGH and 1 from the IJKL(which 4 marbles are surely not the odd
one)(Let's say CFI)
#They are equal:
Put G and H to the balancing scale.
If equal, D is the heavier marble.
If G is lighter, G is the lighter marble.
If H is lighter, H is the lighter marble.
#ABE is heavier:
Put A and B to the balancing scale.
If equal, F is the lighter marble.
If A is heavier, A is the heavier marble.
If B is heavier, B is the heavier marble.
#CFI is heavier:
Put C and I to the balancing scale.
If equal, E is the lighter marble.
If C is heavier, C is the heavier marble.
-Not equal, EFGH is heavier:
Select 2 marbles from ABCD and 1 marble from EFGH making the 1st set(Let's say ABE)
Select another 1 marble from ABCD and another 1 marble from EFGH and 1 from the IJKL(which 4 marbles are surely not the odd
one)(Let's say CFI) (just the same again)
#They are equal:
Put G and H to the balancing scale.
If equal, D is the
heavier lighter marble.
If G is heavier, G is the heavier marble.
If H is heavier, H is the heavier marble.
#ABE is heavier:
Put C and I to the balancing scale.
If equal, E is the heavier marble.
If C is lighter, C is the lighter marble.
#CFI is heavier:
Put A and B to the balancing scale.
If equal, F is the heavier marble.
If A is lighter, then A is the lighter marble.
If B is lighter, then B is the lighter marble.